XmlNamespaceManager.GetEnumerator Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.
Assembly: System.Xml (in System.Xml.dll)
Return Value
Type: System.Collections.IEnumeratorAn IEnumerator containing the prefixes stored by the XmlNamespaceManager.
Implements
IEnumerable.GetEnumeratorThe following code shows how to use the IEnumerator to view all the namespace pairs stored in the XmlNamespaceManager object.
Dim nsEnum As IEnumerator = nsmgr.GetEnumerator()
Do While nsEnum.MoveNext
If nsEnum.Current <> "" Then
OutputTextBlock.Text ="xmlns:" + nsEnum.Current + "=" + nsmgr.LookupNamespace(nsEnum.Current)
End If
Loop
Show: