The structure looks like:
Table
Row
Info1/
Info2/
...
/Row
/Table
I needed to find out how many rows there were.
Mr. Google to the rescue and the solution is:
XmlDocument readTable = new XmlDocument();Refer XPath Examples for the syntax of more kinds of searches you can do.
readTable.LoadXml(stringXml);
int rowCount = readTable.SelectNodes("Table/Row").Count;
Enjoy!
1 comment:
Hello,
Great information and I have not listened about this information about xml.
Post a Comment