Enum NodeType
- Namespace
- DotNetBrowser.Dom
- Assembly
- DotNetBrowser.dll
Represents the node types that can be used to distinguish different kind of nodes (such as an HTML element, text, attribute) from each other.
public enum NodeType
Fields
AttributeNode = 2An attribute of the HTML element.
CDataSectionNode = 4A
[CDATA]section.CommentNode = 8The content between between the
<!--and-->statements.DocumentFragmentNode = 11A segment of the document structure.
DocumentNode = 9The document node.
DocumentTypeNode = 10The document type node. For example,
<!DOCTYPE html>for HTML5 documents.ElementNode = 1An element node, such as
<p>or<div>.EntityNode = 6An XML
<!ENTITY ...>node.EntityReferenceNode = 5An XML entity reference node.
NotationNode = 12An XML
<!NOTATION ...>node.ProcessingInstructionsNode = 7A
ProcessingInstructionof an XML document such as<?xml-stylesheet ... ?>declaration.ShadowRootNode = 14A shadow root node.
TextNode = 3The actual text of the HTML element or the attribute.
Unknown = 0Unknown node type.
XPathNamespaceNode = 13An XPath namespace node.