Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XPathNavigator Methods

The XPathNavigator type exposes the following members.

  Name Description
Public method AppendChild() Returns an XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.
Public method AppendChild(String) Creates a new child node at the end of the list of child nodes of the current node using the XML data string specified.
Public method AppendChild(XmlReader) Creates a new child node at the end of the list of child nodes of the current node using the XML contents of the XmlReader object specified.
Public method AppendChild(XPathNavigator) Creates a new child node at the end of the list of child nodes of the current node using the nodes in the XPathNavigator specified.
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(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Evaluate(String) Evaluates the specified XPath expression and returns the typed result.
Public method Evaluate(XPathExpression) Evaluates the XPathExpression and returns the typed result.
Public method Evaluate(String, IXmlNamespaceResolver) Evaluates the specified XPath expression and returns the typed result, using the IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.
Public method Evaluate(XPathExpression, XPathNodeIterator) Uses the supplied context to evaluate the XPathExpression, 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 the default hash function. (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() Returns an XmlWriter object used to create a new sibling node after the currently selected node.
Public method InsertAfter(String) Creates a new sibling node after the currently selected node using the XML string specified.
Public method InsertAfter(XmlReader) Creates a new sibling node after the currently selected node using the XML contents of the XmlReader object specified.
Public method InsertAfter(XPathNavigator) Creates a new sibling node after the currently selected node using the nodes in the XPathNavigator object specified.
Public method InsertBefore() Returns an XmlWriter object used to create a new sibling node before the currently selected node.
Public method InsertBefore(String) Creates a new sibling node before the currently selected node using the XML string specified.
Public method InsertBefore(XmlReader) Creates a new sibling node before the currently selected node using the XML contents of the XmlReader object specified.
Public method InsertBefore(XPathNavigator) Creates a new sibling node before the currently selected node using the nodes in the XPathNavigator specified.
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(String) Determines whether the current node matches the specified XPath expression.
Public method Matches(XPathExpression) Determines whether the current node matches the specified XPathExpression.
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(XPathNodeType) Moves the XPathNavigator to the child node of the XPathNodeType specified.
Public method MoveToChild(String, String) Moves the XPathNavigator to the child node with the local name and namespace URI 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() Moves the XPathNavigator to first namespace node of the current node.
Public method MoveToFirstNamespace(XPathNamespaceScope) When overridden in a derived class, moves the XPathNavigator to the first namespace node that matches the XPathNamespaceScope specified.
Public method MoveToFollowing(XPathNodeType) Moves the XPathNavigator to the following element of the XPathNodeType specified in document order.
Public method MoveToFollowing(String, String) Moves the XPathNavigator to the element with the local name and namespace URI specified in document order.
Public method MoveToFollowing(XPathNodeType, XPathNavigator) Moves the XPathNavigator to the following element of the XPathNodeType specified, to the boundary specified, in document order.
Public method MoveToFollowing(String, String, XPathNavigator) Moves the XPathNavigator to the element with the local name and namespace URI specified, to the boundary specified, 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() When overridden in a derived class, moves the XPathNavigator to the next sibling node of the current node.
Public method MoveToNext(XPathNodeType) Moves the XPathNavigator to the next sibling node of the current node that matches the XPathNodeType specified.
Public method MoveToNext(String, String) Moves the XPathNavigator to the next sibling node with the local name and namespace URI specified.
Public method MoveToNextAttribute When overridden in a derived class, moves the XPathNavigator to the next attribute.
Public method MoveToNextNamespace() Moves the XPathNavigator to the next namespace node.
Public method MoveToNextNamespace(XPathNamespaceScope) When overridden in a derived class, moves the XPathNavigator to the next namespace node matching the XPathNamespaceScope specified.
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() Returns an XmlWriter object used to create a new child node at the beginning of the list of child nodes of the current node.
Public method PrependChild(String) Creates a new child node at the beginning of the list of child nodes of the current node using the XML string specified.
Public method PrependChild(XmlReader) Creates a new child node at the beginning of the list of child nodes of the current node using the XML contents of the XmlReader object specified.
Public method PrependChild(XPathNavigator) Creates a new child node at the beginning of the list of child nodes of the current node using the nodes in the XPathNavigator object specified.
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(String) Replaces the current node with the content of the string specified.
Public method ReplaceSelf(XmlReader) Replaces the current node with the contents of the XmlReader object specified.
Public method ReplaceSelf(XPathNavigator) Replaces the current node with the contents of the XPathNavigator object specified.
Public method Select(String) Selects a node set, using the specified XPath expression.
Public method Select(XPathExpression) Selects a node set using the specified XPathExpression.
Public method Select(String, IXmlNamespaceResolver) Selects a node set using the specified XPath expression with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
Public method SelectAncestors(XPathNodeType, Boolean) Selects all the ancestor nodes of the current node that have a matching XPathNodeType.
Public method SelectAncestors(String, String, Boolean) Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.
Public method SelectChildren(XPathNodeType) Selects all the child nodes of the current node that have the matching XPathNodeType.
Public method SelectChildren(String, String) Selects all the child nodes of the current node that have the local name and namespace URI specified.
Public method SelectDescendants(XPathNodeType, Boolean) Selects all the descendant nodes of the current node that have a matching XPathNodeType.
Public method SelectDescendants(String, String, Boolean) Selects all the descendant nodes of the current node with the local name and namespace URI specified.
Public method SelectSingleNode(String) Selects a single node in the XPathNavigator using the specified XPath query.
Public method SelectSingleNode(XPathExpression) Selects a single node in the XPathNavigator using the specified XPathExpression object.
Public method SelectSingleNode(String, IXmlNamespaceResolver) Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
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(Type) Returns the item's value as the specified type. (Inherited from XPathItem.)
Public method ValueAs(Type, IXmlNamespaceResolver) Gets the current node's value as the Type specified, using the IXmlNamespaceResolver object specified to resolve namespace prefixes. (Overrides XPathItem.ValueAs(Type, IXmlNamespaceResolver).)
Public method WriteSubtree Streams the current node and its child nodes to the XmlWriter object specified.
Top
  Name Description
Explicit interface implemetation Private method ICloneable.Clone Creates a new copy of the XPathNavigator object.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.