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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.