Name
Comment -- parser has encountered a comment
Synopsis
Comment(p, s$)
Function
This function is called whenever the parser encounters a comment in the XML. The comment data is passed to your callback as a string in the s$ parameter.

Parameters
p
parser handle
s$
the comment data
Example
Function p_Comment(p, s$)
   DebugPrint(s$)
EndFunction

p = xml.CreateParser({Comment = p_Comment})
p:Parse([[
    <!--I'm a comment-->
    <app>Hollywood</app>
]])
p:Free()
The code above will print "I'm a comment".

Show TOC