How to read data from xml file
using MSXML6.0.DLL
Using System.Xml.DLL
DOMDocumentClass document = new DOMDocumentClass();
document .load("d:\\gopal\\test.xml");
IXMLDOMElement p = document .documentElement;
for (int i = 0; i < p.childNodes.length ; i++)
{
MessageBox.Show(p.childNodes [i].childNodes[0].text + " " + p.childNodes[i].childNodes[5
].text);
}
using MSXML6.0.DLL
Using System.Xml.DLL
DOMDocumentClass document = new DOMDocumentClass();
document .load("d:\\gopal\\test.xml");
IXMLDOMElement p = document .documentElement;
for (int i = 0; i < p.childNodes.length ; i++)
{
MessageBox.Show(p.childNodes
].text);
}
No comments:
Post a Comment