HtmlNode Properties

IronWebScraper

HtmlNode Properties

The HtmlNode type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Gets the attributes of the HTML node (such ash href, class, style etc).
Public propertyChildNodes
An array of nodes nested within the HtmlNode.
Public propertyInnerHtml
Gets the HtmlNode's inner Html as a string. OuterHTML will not include the current tag's own html markup, only that nested inside it.
Public propertyInnerText
Gets the text content of the HtmlNode as might be shown to a user. Text will be trimmed, with all groups of whitespace turned into a single space character.
Public propertyInnerTextClean
Gets the text content of the HtmlNode as might be shown to a user.
Public propertyNodeName
Name of the HtmlNode such as "div" "p" or "#text"
Public propertyNodeType

Type of the HtmlNode

Possible values are: "ELEMENT_NODE", "TEXT_NODE" ,"CDATA_SECTION_NODE" ,"COMMENT_NODE", "DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE"
Public propertyOuterHtml
Gets the HtmlNode's outer Html as a string. OuterHTML will include the tag's own html markup.
Public propertyParentNode
Gets the Parent (enclosing) tag for this HtmlNode.
Public propertyTextContent
Gets the text content of the HtmlNode and all of its descendants.
Public propertyTextContentClean
Gets the text content of the HtmlNode, Trimmed, with all groups of whitespace turned into a single space character. TextContent will include the content of non-printable elements just as style and script nodes.
Top
See Also