Wednesday, April 26, 2017
 
Code Search
 
Code Bank
 
.NET Applications
XSD Schema Generator
 
.NET/XML Training




 







Converting an XmlDocument to a DataSet using the XmlNodeReader
Description

There may be times when an object you are working with returns an XmlDocument object that you would like to bind to a server control such as a DataGrid. Because an XmlDocument cannot be bound directly what can you do?

The answer to this question lies in the XmlNodeReader. In this example you will see how to convert an XmlDocument to a DataSet in an efficient manner (as opposed to converting the XmlDocument to a string first) by using the XmlNodeReader class.


Teaches C#, XmlDocument, DataSet, XmlNodeReader
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