XML.NamespaceDecl
A namespace declaration is represented by a syntax element with field type XML.NamespaceDecl.
Namespace declarations take one of two forms in the message tree:
- Declaration using a namespace prefix
<ns1:e1 xmlns:ns1="namespace1"/>
In the message tree, the syntax element for this namespace declaration is shown in the following table:Namespace http://www.w3.org/2000/xmlns/
Name ns1
Value namespace1
- Declaration of a default namespaceA default namespace declaration is an xmlns attribute that defines an empty prefix
In the message tree, the syntax element for this namespace declaration is shown in the following table:<e1 xmlns="namespace1"/>
Note that, in both cases, element ‘e1' is in namespace ‘namespace1'.Namespace "" Name xmlns
Value namespace1