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

TDOMDocument.CreateElementBuf

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

Declaration

Source position: laz2_dom.pas line 508

public function TDOMDocument.CreateElementBuf(

  Buf: DOMPChar;

  Length: Integer

):TDOMElement;

Arguments

Buf

  

Pointer to character data used as the tag name for the Element.

Length

  

Length of the values in Buf.

Function result

DOM Element created in the method.

Description

CreateElementBuf is a TDOMElement function used to create a new DOM Element with the tag name specified in the Buf argument. Buf is a DOMPChar type that contains a pointer the character data for the tagName.

CreateElementBuf calls Alloc to create the DOM Element in the internal node pool for the document. The value in Buf is checked for a qualified name matching a Namespace registered in the document, and added to the Namespace index if it does not already exist.

See also

TDOMElement

  

Implements the DOM Element interface from the DOM specification.


Version 3.2 Generated 2024-02-25 Home