Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The previous chapter provided an overview of the improvements to System.Xml 2.0 and the reasons behind them. This chapter and the next two provide code examples and scenarios for using these new classes.
In this chapter we'll look at the XPathDocument2 class, which is based on the existing XPathDocument class in System.Xml 1.x. We will also examine the XPathEditor and XPathChangeNavigator classes that allow you to perform editing within the XPathDocument2 class and view changes that have been made to the document. The XPathDocument2 class is an XML store that can be validated with a W3C XML schema, so we will also be using the new XmlSchemaSet class to validate the updates to the document.