Export (0) Print
Expand All

Extensions.CreateNavigator Method (XNode, XmlNameTable)

Creates an XPathNavigator for an XNode. The XmlNameTable enables more efficient XPath expression processing.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public static XPathNavigator CreateNavigator(
	this XNode node,
	XmlNameTable nameTable
)

Parameters

node
Type: System.Xml.Linq.XNode
An XNode that can process an XPath query.
nameTable
Type: System.Xml.XmlNameTable
A XmlNameTable to be used by XPathNavigator.

Return Value

Type: System.Xml.XPath.XPathNavigator
An XPathNavigator that can process XPath queries.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XNode. When you use instance method syntax to call this method, omit the first parameter.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft