Name
StartNamespaceDecl -- parser has detected a namespace declaration
Synopsis
StartNamespaceDecl(p, name$, uri$)
Function
This function is called when a namespace is declared. The callback will receive the name and URI of the namespace in the 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.

Parameters
p
parser handle
name$
namespace name
uri$
namespace URI
Example
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".

Show TOC