HtmlNodeNavigator Members

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlNodeNavigator type exposes the following members.

Constructors

  NameDescription
Public methodHtmlNodeNavigator(Stream)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
Public methodHtmlNodeNavigator(TextReader)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a TextReader.
Public methodHtmlNodeNavigator(String)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
Public methodHtmlNodeNavigator(Stream, Boolean)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
Public methodHtmlNodeNavigator(Stream, Encoding)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
Public methodHtmlNodeNavigator(String, Boolean)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
Public methodHtmlNodeNavigator(String, Encoding)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
Public methodHtmlNodeNavigator(Stream, Encoding, Boolean)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
Public methodHtmlNodeNavigator(String, Encoding, Boolean)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
Public methodHtmlNodeNavigator(Stream, Encoding, Boolean, Int32)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
Public methodHtmlNodeNavigator(String, Encoding, Boolean, Int32)
Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.

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.)

Properties

  NameDescription
Public propertyBaseURI
Gets the base URI for the current node. Always returns string.Empty in the case of HtmlNavigator implementation.
(Overrides XPathNavigator..::..BaseURI.)
Public propertyCanEdit
Gets a value indicating whether the XPathNavigator can edit the underlying XML data.
(Inherited from XPathNavigator.)
Public propertyCurrentDocument
Gets the current HTML document.
Public propertyCurrentNode
Gets the current HTML node.
Public propertyHasAttributes
Gets a value indicating whether the current node has child nodes.
(Overrides XPathNavigator..::..HasAttributes.)
Public propertyHasChildren
Gets a value indicating whether the current node has child nodes.
(Overrides XPathNavigator..::..HasChildren.)
Public propertyInnerXml
Gets or sets the markup representing the child nodes of the current node.
(Inherited from XPathNavigator.)
Public propertyIsEmptyElement
Gets a value indicating whether the current node is an empty element.
(Overrides XPathNavigator..::..IsEmptyElement.)
Public propertyIsNode
Gets a value indicating if the current node represents an XPath node.
(Inherited from XPathNavigator.)
Public propertyLocalName
Gets the name of the current HTML node without the namespace prefix.
(Overrides XPathNavigator..::..LocalName.)
Public propertyName
Gets the qualified name of the current node.
(Overrides XPathNavigator..::..Name.)
Public propertyNamespaceURI
Gets the namespace URI (as defined in the W3C Namespace Specification) of the current node. Always returns string.Empty in the case of HtmlNavigator implementation.
(Overrides XPathNavigator..::..NamespaceURI.)
Public propertyNameTable
Gets the XmlNameTable associated with this implementation.
(Overrides XPathNavigator..::..NameTable.)
Public propertyNodeType
Gets the type of the current node.
(Overrides XPathNavigator..::..NodeType.)
Public propertyOuterXml
Gets or sets the markup representing the opening and closing tags of the current node and its child nodes.
(Inherited from XPathNavigator.)
Public propertyPrefix
Gets the prefix associated with the current node. Always returns string.Empty in the case of HtmlNavigator implementation.
(Overrides XPathNavigator..::..Prefix.)
Public propertySchemaInfo
Gets the schema information that has been assigned to the current node as a result of schema validation.
(Inherited from XPathNavigator.)
Public propertyTypedValue
Gets the current node as a boxed object of the most appropriate .NET Framework type.
(Inherited from XPathNavigator.)
Public propertyUnderlyingObject
Used by XPathNavigator implementations which provide a "virtualized" XML view over a store, to provide access to underlying objects.
(Inherited from XPathNavigator.)
Public propertyValue
Gets the text value of the current node.
(Overrides XPathItem..::..Value.)
Public propertyValueAsBoolean
Gets the current node's value as a Boolean.
(Inherited from XPathNavigator.)
Public propertyValueAsDateTime
Gets the current node's value as a DateTime.
(Inherited from XPathNavigator.)
Public propertyValueAsDouble
Gets the current node's value as a Double.
(Inherited from XPathNavigator.)
Public propertyValueAsInt
Gets the current node's value as an Int32.
(Inherited from XPathNavigator.)
Public propertyValueAsLong
Gets the current node's value as an Int64.
(Inherited from XPathNavigator.)
Public propertyValueType
Gets the .NET Framework Type of the current node.
(Inherited from XPathNavigator.)
Public propertyXmlLang
Gets the xml:lang scope for the current node. Always returns string.Empty in the case of HtmlNavigator implementation.
(Overrides XPathNavigator..::..XmlLang.)
Public propertyXmlType
Gets the XmlSchemaType information for the current node.
(Inherited from XPathNavigator.)

See Also