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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Apr 14, 2009, 8:03 PM EDT
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!
Mohammed Imran2 reputationPosted Jul 3, 2009, 6:08 AM EDT