i give you links i hope it will give you brief idea of xml and solve your query
XML for beginners and experts[
^]
best of luck
i am give you simple example i think it will more help you
using System.IO;
using System.Xml;
private void readDatafromXML(string file_Path)
{
DataSet DS_purchase;
int timeout = Server.ScriptTimeout;
Server.ScriptTimeout = int.MaxValue;
FileInfo FInfo = new FileInfo(file_Path);
if (FInfo.Exists)
{
XmlTextReader xmlReader;
xmlReader = new XmlTextReader(FInfo.FullName);
try
{
DS_purchase.ReadXml(xmlReader);
xmlReader.Close();
}
catch (Exception ex)
{
xmlReader.Close();
lbl_err.Text = "Error in Reading XML file " + ex.Message;
}
finally
{
xmlReader.Close();
}
}
else
lbl_err.Text = "Session Has been expired.please Try again. ";
}