I need to parse an xml string and find values of specific text nodes, attribute values etc. I\'m doing this in javascript and was using the DOMParser class for the same. Lat
This document from MSDN provides a wealth of information about optimizing XML processing.
In particular, the XPathDocument class is designed to be more efficient for evaluating XPath expressions than using (the DOM-based) XmlDocument class. The reason is that XPathDocument is a read-only representation of an XML document, while a DOM implementation also covers changing the document.
Using DOM has a not less-important downside that it typically results in complicated, spaghetti-like code that is difficult to understand and maintain.