How to read the "Leg" nodes in this xml by datatable?
XmlTextReader textReader = new XmlTextReader("C:\\XMLFile1.xml"); DataTable dt = new DataTable(); DataSet ds = new DataSet(); ds.ReadXml("C:\\XMLFile1.xml"); dt = ds.Tables[0]; I follow http://www.c-sharpcorner.com/Forums/Thread/109386/xml-reading-problem-getting-error.aspx but it read only the "ItemCount" .... not "Leg" Node
1
LCY AMS Sun 27Feb11 17:50 Sun 27Feb11 20:05 KL 2760 AR8 217
7341854034027201 KL 2760 CITYJET 1 4 3
AMS CDG Sun 27Feb11 20:45 Sun 27Feb11 22:00 KL 2023 2F M 321 247
Manikavelu VelayuthamPosted Feb 22, 2011, 4:39 AM
Its so simple and code readability will be clear.