Forum guidelines
AuthorQuestion
Reading xml file
Posted By Shubham Srivastava on 24 Mar 2012
how can we read exact location in xml file?

AuthorReply
Re: Reading xml file
Posted By Satyapriya Nayak on 24 Mar 2012  
Hi Shubham,

 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

If this post helps you mark it as answer
Thanks

Re: Reading xml file
Posted By Jignesh Trivedi on 26 Mar 2012  
hi,

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.

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.