Hi,
I got the answer which is as follows:
I wrote a function wherein I opened a new dataset. I have a pre-defined xml file with cmhdr and othdet tables. Following code will give the value of fields to a variable:
DataSet ds = new DataSet();
string xmlfile = @"xxxx.xml";
ds.ReadXml(xmlfile);
try
{
DataRow drI = ds.Tables["cmphdr"].Rows[0];
string mExpInvNo = drI["expinvno"].ToString();
DataRow dr = ds.Tables["OthDet"].Rows[0];
string mIsHzrds = dr["ishzrds"].ToString();
}
catch (Exception er)
{
MessageBox.Show(er.Message, "Error");
}
Regards
Mathew Antony Valliara