TDOMDocument.Alloc function
Ensures the DOM node class type is allocated using the Node pool for the document.
Declaration
function Alloc(AClass: TDOMNodeClass): TDOMNodeArguments
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.
