TDOMNode class
Implements the DOM Node interface.
Declaration
TDOMNode = classDescends from it: TDOMCharacterData TDOMDocumentType TDOMNode_WithChildren TDOMNotation TDOMProcessingInstruction
Description
TDOMNode is a class which implements the Node interface in the
Document Object Model (DOM).
TDOMNode represents a single node in a DOM document. It includes NodeName, NodeValue, NodeType, and Attributes properties with information common to all nodes in a document tree. The ParentNode, ChildNodes, and OwnerDocument properties provide access to the tree structure for a DOM document.
TDOMNode implements the full DOM Level 2 specification, and provides partial support for the DOM Level 3 specification. It also provides extensions to the DOM Node interface that allow locating or cloning a node, perform name comparisons, or access its node flags.
TDOMNode is used as the ancestor for other specialized Node types, as specified in the DOM specification. These descendent classes may alter the base value and/or behavior as required for the specialized node type.
See also
Properties
NodeName | public | Name for the DOM node. |
NodeValue | public | Value for the DOM node. |
NodeType | public | Node type for the DOM Node. |
ParentNode | public | DOM node that is the immediate ancestor of this node. |
FirstChild | public | Gets the first child node for the current node. |
LastChild | public | Gets the last child node for the current node. |
ChildNodes | public | Provides access to the list of Child nodes for the current node. |
PreviousSibling | public | Previous DOM Node at the same level in the DOM tree. |
NextSibling | public | Next DOM Node at the same level in the DOM tree. |
Attributes | public | Contains Attribute for the DOM Node. |
OwnerDocument | public | DOM Document that created the DOM node. |
NamespaceURI | public | URI for the NameSpace assigned to the DOM Node. |
LocalName | public | Name without the NameSpace prefix assigned to the DOM Node. |
Prefix | public | Prefix used for the assigned NameSpace in the DOM Node. |
TextContent | public | Textual representation for the DOM Node. |
baseURI | public | Provides the BaseURI for the node relative to its Owner document. |
Flags | public | Provides access to the Node Flags for the DOM Node. |
Methods
GetNodeName | protected | Gets the value for the NodeName property. |
GetNodeValue | protected | Gets the value for the NodeValue property. |
SetNodeValue | protected | Sets the value for the NodeValue property. |
GetFirstChild | protected | Gets the value for the FirstChild property. |
GetLastChild | protected | Gets the value for the LastChild property. |
GetAttributes | protected | Gets the value for the Attributes property. |
GetRevision | protected | Gets the revision number for the node. |
GetNodeType | protected | Gets the value for the NodeType property. |
GetTextContent | protected | Gets the value for the TextContent property. |
SetTextContent | protected | Sets the value in the TextContent property. |
GetLocalName | protected | Gets the value for the LocalName property. |
GetNamespaceURI | protected | Gets the value for the NamespaceURI property. |
GetPrefix | protected | Gets the value for the Prefix property. |
SetPrefix | protected | Sets the value for the Prefix property. |
GetOwnerDocument | protected | Gets the value for the OwnerDocument property. |
GetBaseURI | protected | Gets the value for the BaseURI property. |
SetReadOnly | protected | Updates the read-only Node flag for the DOM Node and its children. |
Changing | protected | Determines if the Node and its owner document can be modified. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
FreeInstance | public | Performs actions needed to free the class instance. |
GetChildNodes | public | Gets the value for the ChildNodes property. |
GetChildCount | public | Gets the number of Child nodes for the DOM node. |
GetEnumerator | public | Gets an enumerator for DOM Nodes that are top-level children in the node. |
GetEnumeratorAllChildren | public | Gets an enumerator for DOM Nodes that are children or grand children for the node. |
GetNextNode | public | Gets the next Child or Sibling node for the DOM node. |
GetNextNodeSkipChildren | public | Gets the next sibling for the node in the DOM hierarchy. |
GetPreviousNode | public | Gets the previous node in the DOM node hierarchy. |
GetLastLeaf | public | Gets the last node in the DOM sub-tree for the current node. |
GetLevel | public | Gets the level in the DOM tree for the DOM node. |
InsertBefore | public | Inserts a new child node immediately before the reference child node. |
ReplaceChild | public | Replaces a child node with the specified DOM node. |
DetachChild | public | Detaches the specified child node from the DOM sub-tree for the node. |
RemoveChild | public | Removes the specified child from the DOM sub-tree for this node. |
AppendChild | public | Appends the specified node as a child in the current node. |
HasChildNodes | public | Indicates if the DOM node has child nodes. |
CloneNode | public | Makes a copy of the DOM node. |
IsSupported | public | Indicates if the DOM implementation supports a specific feature at a given conformance level. |
HasAttributes | public | Indicates if the DOM node has attribute names and values. |
Normalize | public | Normalizes text nodes and attributes in the Node sub-tree. |
LookupPrefix | public | Locates the Prefix for the specified NameSpace URI. |
LookupNamespaceURI | public | Locates the NameSpace URI for the specified Prefix. |
IsDefaultNamespace | public | Indicates if the specified NameSpace URI is the default namespace for the DOM node. |
FindNode | public | Finds the Child Node with the specified name. |
CompareName | public | Compares the NodeName in the DOM Node to the specified value. |
Fields
FPool | protected | |
FFlags | protected | |
FParentNode | protected | |
FPreviousSibling | protected | |
FNextSibling | protected | |
FOwnerDocument | protected |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
