Name

XPathDocument

Synopsis

This class is a concrete implementation of IXPathNavigable for creating an XPathNavigator that knows how to scan through an XML document. There are overloaded forms of the constructor designed to pull an XML document from various sources — a System.IO.Stream, a string, a System.IO.TextReader (which presumably is pulling from some other valid data source), or a System.Xml.XmlReader. Note that if the XmlReader is currently positioned on top of a particular node within a document, the constructed XPathDocument instance is only valid for that element and its children. This allows partial XPath scans of a given document.

This class serves no other purpose than as a factory for producing XPathNavigator instances.

Public Class XPathDocument : Implements IXPathNavigable
' Public Constructors
   Public Sub New( ByVal stream As System.IO.Stream) 
   Public Sub New( ByVal uri As String) 
   Public Sub New(ByVal uri As String, 
        ByVal space As System.Xml.XmlSpace) 
   Public Sub New( ByVal reader As System.IO.TextReader) 
   Public Sub New( ByVal reader As System.Xml.XmlReader) 
   Public Sub New(ByVal reader As System.Xml.XmlReader, 
        ByVal space As System.Xml.XmlSpace) 
' Public Instance Methods
   Public Function CreateNavigator(
        ) As XPathNavigator Implements IXPathNavigable.CreateNavigator 
End Class

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.