What is the difference between XPathNavigator and XmlDocument?
It seems to be similar methods.
What is the difference between XPathNavigator and XmlDocument?
It seems to be similar methods.
Generally speaking, XmlDocument provides an object-oriented XML processing method, while XPathNavigator provides a cursor-oriented method of operation.
In practice, the difference is that XPathNavigator is simpler and faster, but XmlDocument more flexible. For example, if you need to create a new XML document, then you will have to use an XmlDocument , since an XPathNavigator (more correctly, an XPathDocument ) requires an already created document.
It is recommended to use the XPathDocument and XPathNavigator classes when working with very large XML documents due to the fact that they are slightly faster. In all other cases, XmlDocument looks preferable.
Source: https://ru.stackoverflow.com/questions/611696/
All Articles