Quicknote: XmlNamespaceManager

Just a very quick note, as i don’t use this frequently enough to remember it – when parsing xml that declares an xml namespace in it’s root element (i.e. xmlns), you must first create an XmlNamespaceManager before you can navigate / select nodes using xpath.

The following msdn page provides a good example of doing this…

http://msdn.microsoft.com/en-us/library/h0hw012b.aspx

You May Also Like

About the Author: rnowik

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.