i am giving a simple example
private void ReadxmlFromXmlTextReader(string file_Path )
{
DS_purchase = new DataSet();
FileInfo FInfo = new FileInfo(file_Path);
if (FInfo.Exists)
{
System.Xml.XmlTextReader xmlReader = new System.Xml.XmlTextReader(FInfo.FullName);
xmlReader.WhitespaceHandling = WhitespaceHandling.None;
try
{
DS_purchase.ReadXml(xmlReader);
}
catch (Exception ex)
{
}
finally
{
xmlReader.Close();
}
}
}