Node
Node class
The Node class is the primary datatype for the entire Document object Model. It represents a single node in the document tree.
public abstract class Node
Properties
Name |
Description |
virtual BaseURI { get; } |
Gets the absolute base URI of this node or null if the implementation wasn’t able to obtain an absolute URI. |
ChildNodes { get; } |
Gets the child nodes. |
FirstChild { get; } |
Gets the first child of this node. If there is no such node, this returns null. |
HasChildNodes { get; } |
Gets whether this node has any children. |
LastChild { get; } |
Gets the last child of this node. If there is no such node, this returns null. |
virtual LocalName { get; } |
Gets the local part of the qualified name of this node. |
virtual NamespaceURI { get; } |
Gets the namespace URI of this node. |
NextSibling { get; } |
Gets the node immediately following this node. If there is no such node, this returns null. |
abstract NodeName { get; } |
Gets the node name, depending on its type. |
NodeType { get; } |
Gets the node type. |
virtual NodeValue { get; set; } |
Gets or sets the value of this node, depending on its type. |
OwnerDocument { get; } |
Gets the document object associated with this node. |
ParentNode { get; } |
Gets the parent node. |
virtual Prefix { get; set; } |
Gets or sets the namespace prefix of this node. |
PreviousSibling { get; } |
Gets the node immediately preceding this node. If there is no such node, this returns null. |
virtual TextContent { get; set; } |
Gets or sets the the text content of this node and its descendants. |
Methods
Name |
Description |
AppendChild(Node) |
Adds the node newChild to the end of the list of children of this node. |
RemoveChild(Node) |
Removes the child node indicated by old child from the list of children. |
ReplaceChild(Node, Node) |
Replaces the child node old child with new child in the list of children, and returns the old child node. |
Fields
See Also