Hellow to all
I would like to new how to retrive xml file into c# asp.net table
If someone can direct me to an article I will appreciate that.
Hellow to all
I would like to new how to retrive xml file into c# asp.net table
If someone can direct me to an article I will appreciate that.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohammed ImranPosted Jul 3, 2009, 10:08 AM
Blocked AccountPosted Apr 15, 2009, 12:03 AM
HI,
Try this code for retrive the xml file in the dataset.
// Create a new DataSet.
DataSet secondDataSet = new DataSet();
// New FileStream object to read XML schema.
System.IO.FileStream fInXml = new System.IO.FileStream
(xmlFilename, System.IO.FileMode.Open);
// XmlTextReader object 'myXmlReader' to read the file.
System.Xml.XmlTextReader myXmlReader =
new System.Xml.XmlTextReader(fInXml);
// Encapsulate the XML document into the DataSet.
secondDataSet.ReadXml(myXmlReader);
// Close the XmlTextReader object.
myXmlReader.Close();
Hope it helps!