Wednesday, August 23, 2017
 
Code Search
 
Code Bank
 
.NET Applications
XSD Schema Generator
 
.NET/XML Training




 







Handling Default and Local Namespaces with the XmlNamespaceManager Class
Description

The SelectSingleNode() and SelectNodes() methods are very useful when specific nodes need to be accessed from within a DOM structure using XPath. However, when namespaces (both local and default) are involved, a little extra work needs to be done which involves the XmlNamespaceManager class found in the System.Xml namespace.

This example demonstrates how to use the XmlNamespaceManager in conjunction with the SelectSingleNode() and SelectNodes() methods to select nodes within default and local namespaces.


Teaches ASP.NET, C#, XML, XmlDocument, XmlNamespaceManager
Requirements .NET 1.0
Example: Click Here
View Source Code: Click Here
Download Code: Click Here

 


.NET, SharePoint and Silverlight Training Solutions
    Online, Onsite and Video Training on .NET and SharePoint technologies available through The Wahlin Group.



© 2007 Wahlin Consulting LLC
XML for ASP.NET Developers in bookstores
Get XML for ASP.NET
Developers