System.Xml.XPath.XPathNavigator: Method Members

The methods of System.Xml.XPath.XPathNavigator are listed below. For a list of all members, see the XPathNavigator Members list.

See Also: Inherited members from System.Xml.XPath.XPathItem

Public Methods

AppendChild() : System.Xml.XmlWriter

Returns an System.Xml.XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.

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.

AppendChild(System.Xml.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 System.Xml.XmlReader object specified.

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 System.Xml.XPath.XPathNavigator specified.

AppendChildElement(string, string, string, string)

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.

CheckValidity(System.Xml.Schema.XmlSchemaSet, System.Xml.Schema.ValidationEventHandler) : bool

Verifies that the XML data in the System.Xml.XPath.XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.

abstract
Clone() : XPathNavigator

When overridden in a derived class, creates a new System.Xml.XPath.XPathNavigator positioned at the same node as this System.Xml.XPath.XPathNavigator.

ComparePosition(XPathNavigator) : System.Xml.XmlNodeOrder

Compares the position of the current System.Xml.XPath.XPathNavigator with the position of the System.Xml.XPath.XPathNavigator specified.

Compile(string) : XPathExpression

Compiles a string representing an XPath expression and returns an System.Xml.XPath.XPathExpression object.

CreateAttribute(string, string, string, string)

Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.

CreateAttributes() : System.Xml.XmlWriter

Returns an System.Xml.XmlWriter object used to create new attributes on the current element.

CreateNavigator() : XPathNavigator

Returns a copy of the System.Xml.XPath.XPathNavigator.

DeleteRange(XPathNavigator)

Deletes a range of sibling nodes from the current node to the node specified.

DeleteSelf()

Deletes the current node and its child nodes.

Evaluate(string) : object

Evaluates the specified XPath expression and returns the typed result.

Evaluate(XPathExpression) : object

Evaluates the System.Xml.XPath.XPathExpression and returns the typed result.

Evaluate(string, System.Xml.IXmlNamespaceResolver) : object

Evaluates the specified XPath expression and returns the typed result, using the System.Xml.IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.

Evaluate(XPathExpression, XPathNodeIterator) : object

Uses the supplied context to evaluate the System.Xml.XPath.XPathExpression, and returns the typed result.

GetAttribute(string, string) : string

Gets the value of the attribute with the specified local name and namespace URI.

GetNamespace(string) : string

Returns the value of the namespace node corresponding to the specified local name.

GetNamespacesInScope(System.Xml.XmlNamespaceScope) : IDictionary<string, string>

Returns the in-scope namespaces of the current node.

InsertAfter() : System.Xml.XmlWriter

Returns an System.Xml.XmlWriter object used to create a new sibling node after the currently selected node.

InsertAfter(string)

Creates a new sibling node after the currently selected node using the XML string specified.

InsertAfter(System.Xml.XmlReader)

Creates a new sibling node after the currently selected node using the XML contents of the System.Xml.XmlReader object specified.

InsertAfter(XPathNavigator)

Creates a new sibling node after the currently selected node using the nodes in the System.Xml.XPath.XPathNavigator object specified.

InsertBefore() : System.Xml.XmlWriter

Returns an System.Xml.XmlWriter object used to create a new sibling node before the currently selected node.

InsertBefore(string)

Creates a new sibling node before the currently selected node using the XML string specified.

InsertBefore(System.Xml.XmlReader)

Creates a new sibling node before the currently selected node using the XML contents of the System.Xml.XmlReader object specified.

InsertBefore(XPathNavigator)

Creates a new sibling node before the currently selected node using the nodes in the System.Xml.XPath.XPathNavigator specified.

InsertElementAfter(string, string, string, string)

Creates a new sibling element after the current node using the namespace prefix, local name and namespace URI specified, with the value specified.

InsertElementBefore(string, string, string, string)

Creates a new sibling element before the current node using the namespace prefix, local name, and namespace URI specified, with the value specified.

IsDescendant(XPathNavigator) : bool

Determines whether the specified System.Xml.XPath.XPathNavigator is a descendant of the current System.Xml.XPath.XPathNavigator.

abstract
IsSamePosition(XPathNavigator) : bool

When overridden in a derived class, determines whether the current System.Xml.XPath.XPathNavigator is at the same position as the specified System.Xml.XPath.XPathNavigator.

LookupNamespace(string) : string

Gets the namespace URI for the specified prefix.

LookupPrefix(string) : string

Gets the prefix declared for the specified namespace URI.

Matches(string) : bool

Determines whether the current node matches the specified XPath expression.

Matches(XPathExpression) : bool

Determines whether the current node matches the specified System.Xml.XPath.XPathExpression.

abstract
MoveTo(XPathNavigator) : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the same position as the specified System.Xml.XPath.XPathNavigator.

MoveToAttribute(string, string) : bool

Moves the System.Xml.XPath.XPathNavigator to the attribute with the matching local name and namespace URI.

MoveToChild(XPathNodeType) : bool

Moves the System.Xml.XPath.XPathNavigator to the child node of the System.Xml.XPath.XPathNodeType specified.

MoveToChild(string, string) : bool

Moves the System.Xml.XPath.XPathNavigator to the child node with the local name and namespace URI specified.

MoveToFirst() : bool

Moves the System.Xml.XPath.XPathNavigator to the first sibling node of the current node.

abstract
MoveToFirstAttribute() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the first attribute of the current node.

abstract
MoveToFirstChild() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the first child node of the current node.

MoveToFirstNamespace() : bool

Moves the System.Xml.XPath.XPathNavigator to first namespace node of the current node.

abstract
MoveToFirstNamespace(XPathNamespaceScope) : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the first namespace node that matches the System.Xml.XPath.XPathNamespaceScope specified.

MoveToFollowing(XPathNodeType) : bool

Moves the System.Xml.XPath.XPathNavigator to the following element of the System.Xml.XPath.XPathNodeType specified in document order.

MoveToFollowing(string, string) : bool

Moves the System.Xml.XPath.XPathNavigator to the element with the local name and namespace URI specified in document order.

MoveToFollowing(XPathNodeType, XPathNavigator) : bool

Moves the System.Xml.XPath.XPathNavigator to the following element of the System.Xml.XPath.XPathNodeType specified, to the boundary specified, in document order.

MoveToFollowing(string, string, XPathNavigator) : bool

Moves the System.Xml.XPath.XPathNavigator to the element with the local name and namespace URI specified, to the boundary specified, in document order.

abstract
MoveToId(string) : bool

When overridden in a derived class, moves to the node that has an attribute of type ID whose value matches the specified string.

MoveToNamespace(string) : bool

Moves the System.Xml.XPath.XPathNavigator to the namespace node with the specified namespace prefix.

abstract
MoveToNext() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the next sibling node of the current node.

MoveToNext(XPathNodeType) : bool

Moves the System.Xml.XPath.XPathNavigator to the next sibling node of the current node that matches the System.Xml.XPath.XPathNodeType specified.

MoveToNext(string, string) : bool

Moves the System.Xml.XPath.XPathNavigator to the next sibling node with the local name and namespace URI specified.

abstract
MoveToNextAttribute() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the next attribute.

MoveToNextNamespace() : bool

Moves the System.Xml.XPath.XPathNavigator to the next namespace node.

abstract
MoveToNextNamespace(XPathNamespaceScope) : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the next namespace node matching the System.Xml.XPath.XPathNamespaceScope specified.

abstract
MoveToParent() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the parent node of the current node.

abstract
MoveToPrevious() : bool

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the previous sibling node of the current node.

MoveToRoot()

Moves the System.Xml.XPath.XPathNavigator to the root node that the current node belongs to.

PrependChild() : System.Xml.XmlWriter

Returns an System.Xml.XmlWriter object used to create a new child node at the beginning of the list of child nodes of the current node.

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.

PrependChild(System.Xml.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 System.Xml.XmlReader object specified.

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 System.Xml.XPath.XPathNavigator object specified.

PrependChildElement(string, string, string, string)

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.

ReadSubtree() : System.Xml.XmlReader

Returns an System.Xml.XmlReader object that contains the current node and its child nodes.

ReplaceRange(XPathNavigator) : System.Xml.XmlWriter

Replaces a range of sibling nodes from the current node to the node specified.

ReplaceSelf(string)

Replaces the current node with the content of the string specified.

ReplaceSelf(System.Xml.XmlReader)

Replaces the current node with the contents of the System.Xml.XmlReader object specified.

ReplaceSelf(XPathNavigator)

Replaces the current node with the contents of the System.Xml.XPath.XPathNavigator object specified.

Select(string) : XPathNodeIterator

Selects a node set, using the specified XPath expression.

Select(XPathExpression) : XPathNodeIterator

Selects a node set using the specified System.Xml.XPath.XPathExpression.

Select(string, System.Xml.IXmlNamespaceResolver) : XPathNodeIterator

Selects a node set using the specified XPath expression with the System.Xml.IXmlNamespaceResolver object specified to resolve namespace prefixes.

SelectAncestors(XPathNodeType, bool) : XPathNodeIterator

Selects all the ancestor nodes of the current node that have a matching System.Xml.XPath.XPathNodeType.

SelectAncestors(string, string, bool) : XPathNodeIterator

Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.

SelectChildren(XPathNodeType) : XPathNodeIterator

Selects all the child nodes of the current node that have the matching System.Xml.XPath.XPathNodeType.

SelectChildren(string, string) : XPathNodeIterator

Selects all the child nodes of the current node that have the local name and namespace URI specified.

SelectDescendants(XPathNodeType, bool) : XPathNodeIterator

Selects all the descendant nodes of the current node that have a matching System.Xml.XPath.XPathNodeType.

SelectDescendants(string, string, bool) : XPathNodeIterator

Selects all the descendant nodes of the current node with the local name and namespace URI specified.

SelectSingleNode(string) : XPathNavigator

Selects a single node in the System.Xml.XPath.XPathNavigator using the specified XPath query.

SelectSingleNode(XPathExpression) : XPathNavigator

Selects a single node in the System.Xml.XPath.XPathNavigator using the specified System.Xml.XPath.XPathExpression object.

SelectSingleNode(string, System.Xml.IXmlNamespaceResolver) : XPathNavigator

Selects a single node in the System.Xml.XPath.XPathNavigator object using the specified XPath query with the System.Xml.IXmlNamespaceResolver object specified to resolve namespace prefixes.

SetTypedValue(object)

Sets the typed value of the current node.

SetValue(string)

Sets the value of the current node.

override
ToString() : string

Gets the text value of the current node.

override
ValueAs(Type, System.Xml.IXmlNamespaceResolver) : object

Gets the current node's value as the Type specified, using the System.Xml.IXmlNamespaceResolver object specified to resolve namespace prefixes.

WriteSubtree(System.Xml.XmlWriter)

Streams the current node and its child nodes to the System.Xml.XmlWriter object specified.