Hi friends this is my xml file
<?xml version="1.0" encoding="utf-8" ?>
<Employees>
<Employee>
<Id>100</Id>
<Name>arun</Name>
<Dept>Electrical</Dept>
<dtdate>12-05-2010 </dtdate>
</Employee>
<Employee>
<Id>101</Id>
<Name>Aji</Name>
<Dept>Computer</Dept>
<dtdate>13-05-2010 </dtdate>
</Employee>
<Employee>
<Id>102</Id>
<Name>Kiran</Name>
<Dept>civil</Dept>
<dtdate>14-05-2010 </dtdate>
</Employee>
</Employees>
i want to display records of employee with id=100.
i tried this example
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Server.MapPath("Employee.xml"));
DataSet ds = new DataSet();
ds.ReadXml(xmlDoc.SelectNodes("//Employees//Employee[Id='100']"));
but showing error
Error 1 The best overloaded method match for 'System.Data.DataSet.ReadXml(System.Xml.XmlReader)' has some invalid arguments
Error 2 Argument '1': cannot convert from 'System.Xml.XmlNodeList' to 'System.Xml.XmlReader'
Iam looking for everyone's help
Regards
Baiju