This documentation is archived and is not being maintained.

XPathNavigator Methods

The methods of the XPathNavigator class are listed here. For a complete list of XPathNavigator class members, see the XPathNavigator Members topic.

Public Methods

public methodClone Creates a new XPathNavigator positioned at the same node as this XPathNavigator.
public methodComparePosition Compares the position of the current navigator with the position of the specified XPathNavigator.
public methodCompile Compiles a string representing an XPath expression and returns an XPathExpression.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodEvaluate Overloaded. Evaluates the given expression and returns the typed result.
public methodGetAttribute Gets the value of the attribute with the specified LocalName and NamespaceURI.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetNamespace Returns the value of the namespace node corresponding to the specified local name.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodIsDescendant Determines whether the specified XPathNavigator is a descendant of the current XPathNavigator.
public methodIsSamePosition Determines whether the current XPathNavigator is at the same position as the specified XPathNavigator.
public methodMatches Overloaded. Determines whether the current node matches the specified XSLT pattern.
public methodMoveTo Moves to the same position as the specified XPathNavigator.
public methodMoveToAttribute Moves to the attribute with matching LocalName and NamespaceURI.
public methodMoveToFirst Moves to the first sibling of the current node.
public methodMoveToFirstAttribute Moves to the first attribute.
public methodMoveToFirstChild Moves to the first child of the current node.
public methodMoveToFirstNamespace Overloaded. Moves the XPathNavigator to the first namespace node of the current element.
public methodMoveToId Moves to the node that has an attribute of type ID whose value matches the specified string.
public methodMoveToNamespace Moves the XPathNavigator to the namespace node with the specified local name.
public methodMoveToNext Moves to the next sibling of the current node.
public methodMoveToNextAttribute Moves to the next attribute.
public methodMoveToNextNamespace Overloaded. Moves the XPathNavigator to the next namespace node.
public methodMoveToParent Moves to the parent of the current node.
public methodMoveToPrevious Moves to the previous sibling of the current node.
public methodMoveToRoot Moves to the root node to which the current node belongs.
public methodSelect Overloaded. Selects a node set using the specified XPath expression.
public methodSelectAncestors Overloaded. Selects all the ancestor element nodes of the current node matching the selection criteria.
public methodSelectChildren Overloaded. Selects all the child nodes of the current node matching the selection criteria.
public methodSelectDescendants Overloaded. Selects all the descendant nodes of the current node matching the selection criteria.
public methodToString Overridden. Gets the text value of the current node. This method is equivalent to returning the Value property.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

XPathNavigator Class | System.Xml.XPath Namespace

Show: