HtmlNodeNavigator Methods

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlNodeNavigator type exposes the following members.

Methods

  NameDescription
Public methodAppendChild()()()()
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.
(Inherited from XPathNavigator.)
Public methodAppendChild(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.
(Inherited from XPathNavigator.)
Public methodAppendChild(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.
(Inherited from XPathNavigator.)
Public methodAppendChild(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.
(Inherited from XPathNavigator.)
Public methodAppendChildElement
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.
(Inherited from XPathNavigator.)
Public methodCheckValidity
Verifies that the XML data in the XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.
(Inherited from XPathNavigator.)
Public methodClone
Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
(Overrides XPathNavigator..::..Clone()()()().)
Public methodComparePosition
Compares the position of the current XPathNavigator with the position of the XPathNavigator specified.
(Inherited from XPathNavigator.)
Public methodCompile
Compiles a string representing an XPath expression and returns an XPathExpression object.
(Inherited from XPathNavigator.)
Public methodCreateAttribute
Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.
(Inherited from XPathNavigator.)
Public methodCreateAttributes
Returns an XmlWriter object used to create new attributes on the current element.
(Inherited from XPathNavigator.)
Public methodCreateNavigator
Returns a copy of the XPathNavigator.
(Inherited from XPathNavigator.)
Public methodDeleteRange
Deletes a range of sibling nodes from the current node to the node specified.
(Inherited from XPathNavigator.)
Public methodDeleteSelf
Deletes the current node and its child nodes.
(Inherited from XPathNavigator.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEvaluate(String)
Evaluates the specified XPath expression and returns the typed result.
(Inherited from XPathNavigator.)
Public methodEvaluate(XPathExpression)
Evaluates the XPathExpression and returns the typed result.
(Inherited from XPathNavigator.)
Public methodEvaluate(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.
(Inherited from XPathNavigator.)
Public methodEvaluate(XPathExpression, XPathNodeIterator)
Uses the supplied context to evaluate the XPathExpression, and returns the typed result.
(Inherited from XPathNavigator.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAttribute
Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
(Overrides XPathNavigator..::..GetAttribute(String, String).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNamespace
Returns the value of the namespace node corresponding to the specified local name. Always returns string.Empty for the HtmlNavigator implementation.
(Overrides XPathNavigator..::..GetNamespace(String).)
Public methodGetNamespacesInScope
Returns the in-scope namespaces of the current node.
(Inherited from XPathNavigator.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsertAfter()()()()
Returns an XmlWriter object used to create a new sibling node after the currently selected node.
(Inherited from XPathNavigator.)
Public methodInsertAfter(String)
Creates a new sibling node after the currently selected node using the XML string specified.
(Inherited from XPathNavigator.)
Public methodInsertAfter(XmlReader)
Creates a new sibling node after the currently selected node using the XML contents of the XmlReader object specified.
(Inherited from XPathNavigator.)
Public methodInsertAfter(XPathNavigator)
Creates a new sibling node after the currently selected node using the nodes in the XPathNavigator object specified.
(Inherited from XPathNavigator.)
Public methodInsertBefore()()()()
Returns an XmlWriter object used to create a new sibling node before the currently selected node.
(Inherited from XPathNavigator.)
Public methodInsertBefore(String)
Creates a new sibling node before the currently selected node using the XML string specified.
(Inherited from XPathNavigator.)
Public methodInsertBefore(XmlReader)
Creates a new sibling node before the currently selected node using the XML contents of the XmlReader object specified.
(Inherited from XPathNavigator.)
Public methodInsertBefore(XPathNavigator)
Creates a new sibling node before the currently selected node using the nodes in the XPathNavigator specified.
(Inherited from XPathNavigator.)
Public methodInsertElementAfter
Creates a new sibling element after the current node using the namespace prefix, local name and namespace URI specified, with the value specified.
(Inherited from XPathNavigator.)
Public methodInsertElementBefore
Creates a new sibling element before the current node using the namespace prefix, local name, and namespace URI specified, with the value specified.
(Inherited from XPathNavigator.)
Public methodIsDescendant
Determines whether the specified XPathNavigator is a descendant of the current XPathNavigator.
(Inherited from XPathNavigator.)
Public methodIsSamePosition
Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator.
(Overrides XPathNavigator..::..IsSamePosition(XPathNavigator).)
Public methodLookupNamespace
Gets the namespace URI for the specified prefix.
(Inherited from XPathNavigator.)
Public methodLookupPrefix
Gets the prefix declared for the specified namespace URI.
(Inherited from XPathNavigator.)
Public methodMatches(XPathExpression)
Determines whether the current node matches the specified XPathExpression.
(Inherited from XPathNavigator.)
Public methodMatches(String)
Determines whether the current node matches the specified XPath expression.
(Inherited from XPathNavigator.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveTo
Moves to the same position as the specified HtmlNavigator.
(Overrides XPathNavigator..::..MoveTo(XPathNavigator).)
Public methodMoveToAttribute
Moves to the HTML attribute with matching LocalName and NamespaceURI.
(Overrides XPathNavigator..::..MoveToAttribute(String, String).)
Public methodMoveToChild(XPathNodeType)
Moves the XPathNavigator to the child node of the XPathNodeType specified.
(Inherited from XPathNavigator.)
Public methodMoveToChild(String, String)
Moves the XPathNavigator to the child node with the local name and namespace URI specified.
(Inherited from XPathNavigator.)
Public methodMoveToFirst
Moves to the first sibling of the current node.
(Overrides XPathNavigator..::..MoveToFirst()()()().)
Public methodMoveToFirstAttribute
Moves to the first HTML attribute.
(Overrides XPathNavigator..::..MoveToFirstAttribute()()()().)
Public methodMoveToFirstChild
Moves to the first child of the current node.
(Overrides XPathNavigator..::..MoveToFirstChild()()()().)
Public methodMoveToFirstNamespace()()()()
Moves the XPathNavigator to first namespace node of the current node.
(Inherited from XPathNavigator.)
Public methodMoveToFirstNamespace(XPathNamespaceScope)
Moves the XPathNavigator to the first namespace node of the current element. Always returns false for the HtmlNavigator implementation.
(Overrides XPathNavigator..::..MoveToFirstNamespace(XPathNamespaceScope).)
Public methodMoveToFollowing(XPathNodeType)
Moves the XPathNavigator to the following element of the XPathNodeType specified in document order.
(Inherited from XPathNavigator.)
Public methodMoveToFollowing(String, String)
Moves the XPathNavigator to the element with the local name and namespace URI specified in document order.
(Inherited from XPathNavigator.)
Public methodMoveToFollowing(XPathNodeType, XPathNavigator)
Moves the XPathNavigator to the following element of the XPathNodeType specified, to the boundary specified, in document order.
(Inherited from XPathNavigator.)
Public methodMoveToFollowing(String, String, XPathNavigator)
Moves the XPathNavigator to the element with the local name and namespace URI specified, to the boundary specified, in document order.
(Inherited from XPathNavigator.)
Public methodMoveToId
Moves to the node that has an attribute of type ID whose value matches the specified string.
(Overrides XPathNavigator..::..MoveToId(String).)
Public methodMoveToNamespace
Moves the XPathNavigator to the namespace node with the specified local name. Always returns false for the HtmlNavigator implementation.
(Overrides XPathNavigator..::..MoveToNamespace(String).)
Public methodMoveToNext()()()()
Moves to the next sibling of the current node.
(Overrides XPathNavigator..::..MoveToNext()()()().)
Public methodMoveToNext(XPathNodeType)
Moves the XPathNavigator to the next sibling node of the current node that matches the XPathNodeType specified.
(Inherited from XPathNavigator.)
Public methodMoveToNext(String, String)
Moves the XPathNavigator to the next sibling node with the local name and namespace URI specified.
(Inherited from XPathNavigator.)
Public methodMoveToNextAttribute
Moves to the next HTML attribute.
(Overrides XPathNavigator..::..MoveToNextAttribute()()()().)
Public methodMoveToNextNamespace()()()()
Moves the XPathNavigator to the next namespace node.
(Inherited from XPathNavigator.)
Public methodMoveToNextNamespace(XPathNamespaceScope)
Moves the XPathNavigator to the next namespace node. Always returns falsefor the HtmlNavigator implementation.
(Overrides XPathNavigator..::..MoveToNextNamespace(XPathNamespaceScope).)
Public methodMoveToParent
Moves to the parent of the current node.
(Overrides XPathNavigator..::..MoveToParent()()()().)
Public methodMoveToPrevious
Moves to the previous sibling of the current node.
(Overrides XPathNavigator..::..MoveToPrevious()()()().)
Public methodMoveToRoot
Moves to the root node to which the current node belongs.
(Overrides XPathNavigator..::..MoveToRoot()()()().)
Public methodPrependChild()()()()
Returns an XmlWriter object used to create a new child node at the beginning of the list of child nodes of the current node.
(Inherited from XPathNavigator.)
Public methodPrependChild(String)
Creates a new child node at the beginning of the list of child nodes of the current node using the XML string specified.
(Inherited from XPathNavigator.)
Public methodPrependChild(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.
(Inherited from XPathNavigator.)
Public methodPrependChild(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.
(Inherited from XPathNavigator.)
Public methodPrependChildElement
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.
(Inherited from XPathNavigator.)
Public methodReadSubtree
Returns an XmlReader object that contains the current node and its child nodes.
(Inherited from XPathNavigator.)
Public methodReplaceRange
Replaces a range of sibling nodes from the current node to the node specified.
(Inherited from XPathNavigator.)
Public methodReplaceSelf(String)
Replaces the current node with the content of the string specified.
(Inherited from XPathNavigator.)
Public methodReplaceSelf(XmlReader)
Replaces the current node with the contents of the XmlReader object specified.
(Inherited from XPathNavigator.)
Public methodReplaceSelf(XPathNavigator)
Replaces the current node with the contents of the XPathNavigator object specified.
(Inherited from XPathNavigator.)
Public methodSelect(String)
Selects a node set, using the specified XPath expression.
(Inherited from XPathNavigator.)
Public methodSelect(XPathExpression)
Selects a node set using the specified XPathExpression.
(Inherited from XPathNavigator.)
Public methodSelect(String, IXmlNamespaceResolver)
Selects a node set using the specified XPath expression with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
(Inherited from XPathNavigator.)
Public methodSelectAncestors(XPathNodeType, Boolean)
Selects all the ancestor nodes of the current node that have a matching XPathNodeType.
(Inherited from XPathNavigator.)
Public methodSelectAncestors(String, String, Boolean)
Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.
(Inherited from XPathNavigator.)
Public methodSelectChildren(XPathNodeType)
Selects all the child nodes of the current node that have the matching XPathNodeType.
(Inherited from XPathNavigator.)
Public methodSelectChildren(String, String)
Selects all the child nodes of the current node that have the local name and namespace URI specified.
(Inherited from XPathNavigator.)
Public methodSelectDescendants(XPathNodeType, Boolean)
Selects all the descendant nodes of the current node that have a matching XPathNodeType.
(Inherited from XPathNavigator.)
Public methodSelectDescendants(String, String, Boolean)
Selects all the descendant nodes of the current node with the local name and namespace URI specified.
(Inherited from XPathNavigator.)
Public methodSelectSingleNode(String)
Selects a single node in the XPathNavigator using the specified XPath query.
(Inherited from XPathNavigator.)
Public methodSelectSingleNode(XPathExpression)
Selects a single node in the XPathNavigator using the specified XPathExpression object.
(Inherited from XPathNavigator.)
Public methodSelectSingleNode(String, IXmlNamespaceResolver)
Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
(Inherited from XPathNavigator.)
Public methodSetTypedValue
Sets the typed value of the current node.
(Inherited from XPathNavigator.)
Public methodSetValue
Sets the value of the current node.
(Inherited from XPathNavigator.)
Public methodToString
Gets the text value of the current node.
(Inherited from XPathNavigator.)
Public methodValueAs(Type)
Returns the item's value as the specified type.
(Inherited from XPathItem.)
Public methodValueAs(Type, IXmlNamespaceResolver)
Gets the current node's value as the Type specified, using the IXmlNamespaceResolver object specified to resolve namespace prefixes.
(Inherited from XPathNavigator.)
Public methodWriteSubtree
Streams the current node and its child nodes to the XmlWriter object specified.
(Inherited from XPathNavigator.)

See Also