Html Agility Pack HTML Traversing
Traversing allows you to traverse through an HTML node.
Properties
Name | Description |
---|---|
ChildNodes | Gets all the children of the node. |
FirstChild | Gets the first child of the node. |
LastChild | Gets the last child of the node. |
NextSibling | Gets the HTML node immediately following this element. |
ParentNode | Gets the parent of this node (for nodes that can have parents). |
Methods
Name | Description |
---|---|
Ancestors() | Gets all the ancestors of the node. |
Ancestors(String) | Gets ancestors with a matching name. |
AncestorsAndSelf() | Gets all ancestor nodes and the current node. |
AncestorsAndSelf(String) | Gets all ancestor nodes and the current node with a matching name. |
DescendantNodes | Gets all descendant nodes for this node and each of the child nodes |
DescendantNodesAndSelf | Returns a collection of all descendant nodes of this element, in document order |
Descendants() | Gets all descendant nodes in enumerated list |
Descendants(String) | Gets all descendant nodes with a matching name |
DescendantsAndSelf() | Returns a collection of all descendant nodes of this element, in document order |
DescendantsAndSelf(String) | Gets all descendant nodes including this node |
Element | Gets the first-generation child node with a matching name |
Elements | Gets the first-generation child nodes with a matching name |