System.Xml.XPath.XPathNavigator Members

The members of System.Xml.XPath.XPathNavigator are listed below.

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

Protected Constructors

Initializes a new instance of the System.Xml.XPath.XPathNavigator class.

Public Properties

[read-only]
abstract
BaseURIstring.

When overridden in a derived class, gets the base URI for the current node.

[read-only]
CanEditbool.

Gets a value indicating whether the System.Xml.XPath.XPathNavigator can edit the underlying XML data.

[read-only]
HasAttributesbool.

Gets a value indicating whether the current node has any attributes.

[read-only]
HasChildrenbool.

Gets a value indicating whether the current node has any child nodes.

InnerXmlstring.

Gets or sets the markup representing the child nodes of the current node.

[read-only]
abstract
IsEmptyElementbool.

When overridden in a derived class, gets a value indicating whether the current node is an empty element without an end element tag.

[read-only]
override
IsNodebool.

Gets a value indicating if the current node represents an XPath node.

[read-only]
abstract
LocalNamestring.

When overridden in a derived class, gets the XPathNavigator.Name of the current node without any namespace prefix.

[read-only]
abstract
Namestring.

When overridden in a derived class, gets the qualified name of the current node.

[read-only]
abstract
NamespaceURIstring.

When overridden in a derived class, gets the namespace URI of the current node.

[read-only]
abstract
NameTableSystem.Xml.XmlNameTable.

When overridden in a derived class, gets the System.Xml.XmlNameTable of the System.Xml.XPath.XPathNavigator.

[read-only]
static
NavigatorComparerIEqualityComparer.

Gets an IEqualityComparer used for equality comparison of System.Xml.XPath.XPathNavigator objects.

[read-only]
abstract
NodeTypeXPathNodeType.

When overridden in a derived class, gets the System.Xml.XPath.XPathNodeType of the current node.

OuterXmlstring.

Gets or sets the markup representing the opening and closing tags of the current node and its child nodes.

[read-only]
abstract
Prefixstring.

When overridden in a derived class, gets the namespace prefix associated with the current node.

[read-only]
SchemaInfoSystem.Xml.Schema.IXmlSchemaInfo.

Gets the schema information that has been assigned to the current node as a result of schema validation.

[read-only]
override
TypedValueobject.

Gets the current node as a boxed object of the most appropriate .NET Framework type.

[read-only]
UnderlyingObjectobject.

Used by System.Xml.XPath.XPathNavigator implementations which provide a "virtualized" XML view over a store, to provide access to underlying objects.

[read-only]
abstract
Valuestring.

Gets the value of the current node.

[read-only]
override
ValueAsBooleanbool.

Gets the current node's value as a bool.

[read-only]
override
ValueAsDateTimeDateTime.

Gets the current node's value as a DateTime.

[read-only]
override
ValueAsDoubledouble.

Gets the current node's value as a double.

[read-only]
override
ValueAsIntint.

Gets the current node's value as an int.

[read-only]
override
ValueAsLonglong.

Gets the current node's value as an long.

[read-only]
override
ValueTypeType.

Gets the .NET Framework Type of the current node.

[read-only]
XmlLangstring.

Gets the xml:lang scope for the current node.

[read-only]
override
XmlTypeSystem.Xml.Schema.XmlSchemaType.

Gets the System.Xml.Schema.XmlSchemaType information for the current node.

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.

Explicitly Implemented Interface Members

ICloneable.Clone

Creates a new copy of the System.Xml.XPath.XPathNavigator object.