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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>