Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XmlTextReader

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
0
0
GB
I need to be able to use an XmlTextReader to read a string object which is made up of XML. Does anybody know how to do this?

Any help would be really appreciated.


Cheers,

lfc77
 
If the XML data resides in a file the simplest thing is to load it into a dataset: xmlName = file name)
public void readXML(string xmlName)
{
dataSet1.Clear();
dataSet1.ReadXml(xmlName);
dataSet1.AcceptChanges();
}
then you can access the data by rows and columns.
If you want to work on it by accessing nodes ala XML then
create an XmlDocument and use the Load function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top