Hi,
if I have xml document
<root xmlns:a="myNS1" xmlns:b="myNS2" xmlns="myNS">
<a:node1>value1 </a:node1>
<b:node2>value2 </b:node2>
<node3>value3 </node3>
</root>
if I load the above xml in XmlDocument, I can get the namespaceURI "myNS1"
usnig .GetNamespaceOf Prefix("a")
Could someone tell me how to get/enumerate all namespace prefixes and
namespaceURIs?
Thanks very much!
John
if I have xml document
<root xmlns:a="myNS1" xmlns:b="myNS2" xmlns="myNS">
<a:node1>value1 </a:node1>
<b:node2>value2 </b:node2>
<node3>value3 </node3>
</root>
if I load the above xml in XmlDocument, I can get the namespaceURI "myNS1"
usnig .GetNamespaceOf Prefix("a")
Could someone tell me how to get/enumerate all namespace prefixes and
namespaceURIs?
Thanks very much!
John
Comment