HtmlNode Methods |
The HtmlNode type exposes the following members.
Name | Description | |
---|---|---|
Ancestors |
Returns a collection of all ancestor nodes of this element.
| |
Ancestors(String) |
Get Ancestors with matching name
| |
AncestorsAndSelf |
Returns a collection of all ancestor nodes of this element.
| |
AncestorsAndSelf(String) |
Gets all anscestor nodes and the current node
| |
AppendChild |
Adds the specified node to the end of the list of children of this node.
| |
AppendChildren |
Adds the specified node to the end of the list of children of this node.
| |
CanOverlapElement |
Determines if an element node can be kept overlapped.
| |
ChildAttributes |
Gets all Attributes with name
| |
Clone |
Creates a duplicate of the node
| |
CloneNode(Boolean) |
Creates a duplicate of the node.
| |
CloneNode(String) |
Creates a duplicate of the node and changes its name at the same time.
| |
CloneNode(String, Boolean) |
Creates a duplicate of the node and changes its name at the same time.
| |
CopyFrom(HtmlNode) |
Creates a duplicate of the node and the subtree under it.
| |
CopyFrom(HtmlNode, Boolean) |
Creates a duplicate of the node.
| |
CreateNavigator |
Creates a new XPathNavigator object for navigating this HTML node.
| |
CreateNode |
Creates an HTML node from a string representing literal HTML.
| |
CreateRootNavigator |
Creates an XPathNavigator using the root of this document.
| |
DescendantNodes |
Gets all Descendant nodes for this node and each of 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) |
Get all descendant nodes with 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 first generation child node matching name
| |
Elements |
Gets matching first generation child nodes matching name
| |
GetAttributeValue(String, Boolean) |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
| |
GetAttributeValue(String, Int32) |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
| |
GetAttributeValue(String, String) |
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
| |
InsertAfter |
Inserts the specified node immediately after the specified reference node.
| |
InsertBefore |
Inserts the specified node immediately before the specified reference node.
| |
IsCDataElement |
Determines if an element node is a CDATA element node.
| |
IsClosedElement |
Determines if an element node is closed.
| |
IsEmptyElement |
Determines if an element node is defined as empty.
| |
IsOverlappedClosingElement |
Determines if a text corresponds to the closing tag of an node that can be kept overlapped.
| |
PrependChild |
Adds the specified node to the beginning of the list of children of this node.
| |
PrependChildren |
Adds the specified node list to the beginning of the list of children of this node.
| |
Remove |
Removes node from parent collection
| |
RemoveAll |
Removes all the children and/or attributes of the current node.
| |
RemoveAllChildren |
Removes all the children of the current node.
| |
RemoveChild(HtmlNode) |
Removes the specified child node.
| |
RemoveChild(HtmlNode, Boolean) |
Removes the specified child node.
| |
ReplaceChild |
Replaces the child node oldChild with newChild node.
| |
SelectNodes |
Selects a list of nodes matching the XPath expression.
| |
SelectSingleNode |
Selects the first XmlNode that matches the XPath expression.
| |
SetAttributeValue |
Helper method to set the value of an attribute of this node. If the attribute is not found, it will be created automatically.
| |
WriteContentTo |
Saves all the children of the node to a string.
| |
WriteContentTo(TextWriter) |
Saves all the children of the node to the specified TextWriter.
| |
WriteTo |
Saves the current node to a string.
| |
WriteTo(TextWriter) |
Saves the current node to the specified TextWriter.
| |
WriteTo(XmlWriter) |
Saves the current node to the specified XmlWriter.
|