Sign in Join
FPDoc Onlineexperiment

TDOMNode class

In unit Laz2_DOM

Implements the DOM Node interface.

Declaration

pascal
TDOMNode = class

Descends 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

NodeNamepublicName for the DOM node.
NodeValuepublicValue for the DOM node.
NodeTypepublicNode type for the DOM Node.
ParentNodepublicDOM node that is the immediate ancestor of this node.
FirstChildpublicGets the first child node for the current node.
LastChildpublicGets the last child node for the current node.
ChildNodespublicProvides access to the list of Child nodes for the current node.
PreviousSiblingpublicPrevious DOM Node at the same level in the DOM tree.
NextSiblingpublicNext DOM Node at the same level in the DOM tree.
AttributespublicContains Attribute for the DOM Node.
OwnerDocumentpublicDOM Document that created the DOM node.
NamespaceURIpublicURI for the NameSpace assigned to the DOM Node.
LocalNamepublicName without the NameSpace prefix assigned to the DOM Node.
PrefixpublicPrefix used for the assigned NameSpace in the DOM Node.
TextContentpublicTextual representation for the DOM Node.
baseURIpublicProvides the BaseURI for the node relative to its Owner document.
FlagspublicProvides access to the Node Flags for the DOM Node.

Methods

GetNodeNameprotectedGets the value for the NodeName property.
GetNodeValueprotectedGets the value for the NodeValue property.
SetNodeValueprotectedSets the value for the NodeValue property.
GetFirstChildprotectedGets the value for the FirstChild property.
GetLastChildprotectedGets the value for the LastChild property.
GetAttributesprotectedGets the value for the Attributes property.
GetRevisionprotectedGets the revision number for the node.
GetNodeTypeprotectedGets the value for the NodeType property.
GetTextContentprotectedGets the value for the TextContent property.
SetTextContentprotectedSets the value in the TextContent property.
GetLocalNameprotectedGets the value for the LocalName property.
GetNamespaceURIprotectedGets the value for the NamespaceURI property.
GetPrefixprotectedGets the value for the Prefix property.
SetPrefixprotectedSets the value for the Prefix property.
GetOwnerDocumentprotectedGets the value for the OwnerDocument property.
GetBaseURIprotectedGets the value for the BaseURI property.
SetReadOnlyprotectedUpdates the read-only Node flag for the DOM Node and its children.
ChangingprotectedDetermines if the Node and its owner document can be modified.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
FreeInstancepublicPerforms actions needed to free the class instance.
GetChildNodespublicGets the value for the ChildNodes property.
GetChildCountpublicGets the number of Child nodes for the DOM node.
GetEnumeratorpublicGets an enumerator for DOM Nodes that are top-level children in the node.
GetEnumeratorAllChildrenpublicGets an enumerator for DOM Nodes that are children or grand children for the node.
GetNextNodepublicGets the next Child or Sibling node for the DOM node.
GetNextNodeSkipChildrenpublicGets the next sibling for the node in the DOM hierarchy.
GetPreviousNodepublicGets the previous node in the DOM node hierarchy.
GetLastLeafpublicGets the last node in the DOM sub-tree for the current node.
GetLevelpublicGets the level in the DOM tree for the DOM node.
InsertBeforepublicInserts a new child node immediately before the reference child node.
ReplaceChildpublicReplaces a child node with the specified DOM node.
DetachChildpublicDetaches the specified child node from the DOM sub-tree for the node.
RemoveChildpublicRemoves the specified child from the DOM sub-tree for this node.
AppendChildpublicAppends the specified node as a child in the current node.
HasChildNodespublicIndicates if the DOM node has child nodes.
CloneNodepublicMakes a copy of the DOM node.
IsSupportedpublicIndicates if the DOM implementation supports a specific feature at a given conformance level.
HasAttributespublicIndicates if the DOM node has attribute names and values.
NormalizepublicNormalizes text nodes and attributes in the Node sub-tree.
LookupPrefixpublicLocates the Prefix for the specified NameSpace URI.
LookupNamespaceURIpublicLocates the NameSpace URI for the specified Prefix.
IsDefaultNamespacepublicIndicates if the specified NameSpace URI is the default namespace for the DOM node.
FindNodepublicFinds the Child Node with the specified name.
CompareNamepublicCompares the NodeName in the DOM Node to the specified value.

Fields

FPoolprotected
FFlagsprotected
FParentNodeprotected
FPreviousSiblingprotected
FNextSiblingprotected
FOwnerDocumentprotected

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.