Perhaps the best method of parsing used to traverse all the node is using the class
System.Xml.XmlReader
:
XmlReader Class (System.Xml)[
^].
Look at the code samples on this page, first of all, the one with
while (reader.Read()) { /* ... */ }
. This is how you traverse all the nodes. Besides, this approach is probably the fastest.
—SA