StartNamespaceDecl(p, name$, uri$)
name$
and uri$
parameters. Note that even
though namespace declarations occur inside start tags the namespace declaration start
handler is called before the start tag handler for each namespace declared in that start
tag.
Note that you must specify the optional sep$
parameter in your call to xml.CreateParser()
if you want the parser to handle namespaces.
Function p_StartNamespaceDecl(p, name$, uri$) DebugPrint(name$, uri$) EndFunction p = xml.CreateParser({StartNamespaceDecl = p_StartNamespaceDecl}, "?") p:Parse([[<foo xmlns:space='a/namespace'/>]]) p:Free()The code above will print "space a/namespace".