XPathDocument Class

Definition

Provides a fast, read-only, in-memory representation of an XML document by using the XPath data model.

public class XPathDocument : System.Xml.XPath.IXPathNavigable
Inheritance
XPathDocument
Implements

Inherited Members

System.Object

Remarks

For more information about processing XML data by using the XPath data model, see the Process XML Data Using the XPath Data Model topic.

Constructors

XPathDocument(Stream)

Initializes a new instance of the XPathDocument class from the XML data in the specified Stream object.

XPathDocument(TextReader)

Initializes a new instance of the XPathDocument class from the XML data that is contained in the specified TextReader object.

XPathDocument(String)

Initializes a new instance of the XPathDocument class from the XML data in the specified file.

XPathDocument(XmlReader)

Initializes a new instance of the XPathDocument class from the XML data that is contained in the specified XmlReader object.

XPathDocument(String, XmlSpace)

Initializes a new instance of the XPathDocument class from the XML data in the file specified with the white space handling specified.

XPathDocument(XmlReader, XmlSpace)

Initializes a new instance of the XPathDocument class from the XML data that is contained in the specified XmlReader object with the specified white space handling.

Methods

CreateNavigator()

Initializes a read-only XPathNavigator object for navigating through nodes in this XPathDocument.