Sign in Join
FPDoc Onlineexperiment

TDOMDocument.Alloc function

Member of TDOMDocumentprotectedIn unit Laz2_DOM

Ensures the DOM node class type is allocated using the Node pool for the document.

Declaration

pascal
function Alloc(AClass: TDOMNodeClass): TDOMNode

Arguments

AClass

DOM Node class to instantiate in the method.

Function result

DOM Node created using the class reference.

Description

Alloc is called when new DOM node specializations are created and added to the DOM node hierarchy. It is called from methods like:

In TDOMElement:
CloneNode, SetAttributeNS
In TDOMNotation:
CloneNode
In TDOMEntity:
CloneNode
In TDOMDocument:
CreateElement, CreateElementBuf, CreateDocumentFragment, CreateTextNode, CreateTextNodeBuf, CreateComment, CreateCommentBuf, CreateAttribute, CreateAttributeBuf, CreateAttributeNS, CreateElementNS, CreateCDATASection
In TXMLDocument:
CreateProcessingInstruction, CreateEntityReference

See also

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