Reading xml file
how can we read exact location in xml file?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 24, 2012, 4:00 AM EDT
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
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 25, 2012, 8:22 PM EDT
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.