Reading xml file
how can we read exact location in xml file?
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.
Jignesh TrivediPosted Mar 26, 2012, 12:22 AM
In .net there is system.xml name space.It has many property to identify location like "child".
please refer
http://msdn.microsoft.com/en-us/library/system.xml.xmlnode.childnodes.aspx
http://msdn.microsoft.com/en-us/library/system.xml%28v=vs.71%29.aspx
hope this help.
Satyapriya NayakPosted Mar 24, 2012, 8:00 AM
protected void btn_showdata_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("Data.xml"));
GridView1.DataSource = ds;
GridView1.DataBind();
}
Thanks