[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMDocument.Alloc

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

Declaration

Source position: laz2_dom.pas line 498

protected function TDOMDocument.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

TDOMElement.CloneNode

  

Creates a DOM node that is a copy of the DOM Element.

TDOMElement.SetAttributeNS

  

Sets the value for the DOM Attribute with the specified Namespace URI and qualified name.

TDOMNotation.CloneNode

  

Makes a copy of the DOM Node.

TDOMEntity.CloneNode

  

Makes a copy of the DOM node with the specified owner document.

TDOMDocument.CreateElement

  

Creates an element in the document with the specified tag name.

TDOMDocument.CreateElementBuf

  

Creates an element in the document with the specified tag name.

TDOMDocument.CreateDocumentFragment

  

Creates a new DOM Document Fragment.

TDOMDocument.CreateTextNode

  

Creates a new DOM Text node with the specified value.

TDOMDocument.CreateTextNodeBuf

  

Creates a new DOM Text node with the specified value.

TDOMDocument.CreateComment

  

Creates a new DOM Comment with the specified content.

TDOMDocument.CreateCommentBuf

  

Created a new DOM Comment using the specified content.

TDOMDocument.CreateAttribute

  

Creates a new DOM Attribute with the specified name.

TDOMDocument.CreateAttributeBuf

  

Creates a new DOM Attribute with the specified name.

TDOMDocument.CreateAttributeNS

  

Creates a new Attribute with the specified Namespace URI and qualified name.

TDOMDocument.CreateElementNS

  

Creates a new DOM Element with the specified Namespace URI.

TDOMDocument.CreateCDATASection

  

Creates a new DOM CDATA section with the specified content.

TXMLDocument.CreateProcessingInstruction

  

Creates a new Processing Instruction in the document.

TXMLDocument.CreateEntityReference

  

Creates a new Entity Reference in the document.


Version 3.2 Generated 2024-02-25 Home