XPathNavigator Methods

The XPathNavigator type exposes the following members.

  NameDescription
Public method AppendChild Overloaded. Creates a new child node at the end of the list of child nodes of the current node.
Public method AppendChildElement Creates a new child element node at the end of the list of child nodes of the current node using the namespace prefix, local name and namespace URI specified with the value specified.
Public method CheckValidity Verifies that the XML data in the XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.
Public method Clone When overridden in a derived class, creates a new XPathNavigator positioned at the same node as this XPathNavigator.
Public method ComparePosition Compares the position of the current XPathNavigator with the position of the XPathNavigator specified.
Public method Compile Compiles a string representing an XPath expression and returns an XPathExpression object.
Public method CreateAttribute Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.
Public method CreateAttributes Returns an XmlWriter object used to create new attributes on the current element.
Public method CreateNavigator Returns a copy of the XPathNavigator.
Public method DeleteRange Deletes a range of sibling nodes from the current node to the node specified.
Public method DeleteSelf Deletes the current node and its child nodes.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Evaluate Overloaded. Evaluates the specified XPath expression and returns the typed result.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAttribute Gets the value of the attribute with the specified local name and namespace URI.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetNamespace Returns the value of the namespace node corresponding to the specified local name.
Public method GetNamespacesInScope Returns the in-scope namespaces of the current node.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InsertAfter Overloaded. Creates a new sibling node after the currently selected node.
Public method InsertBefore Overloaded. Creates a new sibling node before the currently selected node.
Public method InsertElementAfter Creates a new sibling element after the current node using the namespace prefix, local name and namespace URI specified, with the value specified.
Public method InsertElementBefore Creates a new sibling element before the current node using the namespace prefix, local name, and namespace URI specified, with the value specified.
Public method IsDescendant Determines whether the specified XPathNavigator is a descendant of the current XPathNavigator.
Public method IsSamePosition When overridden in a derived class, determines whether the current XPathNavigator is at the same position as the specified XPathNavigator.
Public method LookupNamespace Gets the namespace URI for the specified prefix.
Public method LookupPrefix Gets the prefix declared for the specified namespace URI.
Public method Matches Overloaded. Determines whether the current node matches the specified System.Xml.XPath expression.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveTo When overridden in a derived class, moves the XPathNavigator to the same position as the specified XPathNavigator.
Public method MoveToAttribute Moves the XPathNavigator to the attribute with the matching local name and namespace URI.
Public method MoveToChild Overloaded. Moves the XPathNavigator to the child node specified.
Public method MoveToFirst Moves the XPathNavigator to the first sibling node of the current node.
Public method MoveToFirstAttribute When overridden in a derived class, moves the XPathNavigator to the first attribute of the current node.
Public method MoveToFirstChild When overridden in a derived class, moves the XPathNavigator to the first child node of the current node.
Public method MoveToFirstNamespace Overloaded. Moves the XPathNavigator to the first namespace node of the current node.
Public method MoveToFollowing Overloaded. Moves the XPathNavigator to the specified element in document order.
Public method MoveToId When overridden in a derived class, moves to the node that has an attribute of type ID whose value matches the specified String.
Public method MoveToNamespace Moves the XPathNavigator to the namespace node with the specified namespace prefix.
Public method MoveToNext Overloaded. Moves the XPathNavigator to the next sibling node of the current node.
Public method MoveToNextAttribute When overridden in a derived class, moves the XPathNavigator to the next attribute.
Public method MoveToNextNamespace Overloaded. Moves the XPathNavigator to the next namespace node.
Public method MoveToParent When overridden in a derived class, moves the XPathNavigator to the parent node of the current node.
Public method MoveToPrevious When overridden in a derived class, moves the XPathNavigator to the previous sibling node of the current node.
Public method MoveToRoot Moves the XPathNavigator to the root node that the current node belongs to.
Public method PrependChild Overloaded. Creates a new child node at the beginning of the list of child nodes of the current node.
Public method PrependChildElement Creates a new child element at the beginning of the list of child nodes of the current node using the namespace prefix, local name, and namespace URI specified with the value specified.
Public method ReadSubtree Returns an XmlReader object that contains the current node and its child nodes.
Public method ReplaceRange Replaces a range of sibling nodes from the current node to the node specified.
Public method ReplaceSelf Overloaded. Replaces the current node with the content specified.
Public method Select Overloaded. Selects a node set, using the specified XPath expression.
Public method SelectAncestors Overloaded. Selects all the ancestor nodes of the current node that match the selection criteria.
Public method SelectChildren Overloaded. Selects all the child nodes of the current node that match the selection criteria.
Public method SelectDescendants Overloaded. Selects all the descendant nodes of the current node that match the selection criteria.
Public method SelectSingleNode Overloaded. Selects a single node in the XPathNavigator.
Public method SetTypedValue Sets the typed value of the current node.
Public method SetValue Sets the value of the current node.
Public method ToString Gets the text value of the current node. (Overrides Object.ToString().)
Public method ValueAs Overloaded. Returns the current node's value as the Type specified.
Public method WriteSubtree Streams the current node and its child nodes to the XmlWriter object specified.
Top

  NameDescription
Explicit interface implemetation Private method ICloneable.Clone For a description of this member, see XPathNavigator.Clone.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft