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

TDOMImplementation.CreateDocumentType

Creates a DOM Document Type using the specified arguments.

Declaration

Source position: laz2_dom.pas line 447

public function TDOMImplementation.CreateDocumentType(

  const QualifiedName: DOMString;

  const PublicID: DOMString;

  const SystemID: DOMString

):TDOMDocumentType;

Arguments

QualifiedName

  

Qualified name used in the DOM Document type.

PublicID

  

Public ID for the DOM Document type.

SystemID

  

System ID for the DOM Document type.

Function result

TDOMDocumentType created in the method.

Description

CreateDocumentType is a method used to create an instance of a DOM Document Type. CreateDocumentType implements the method specified for the DOMImplementation interface in the DOM Level 2 specification.

Create ensures that the value in the QualifiedName argument is a valid XML Name, including its use of 'xml' or 'xmlns' prefixes in the name token. If QualifiedName is not valid, an EDOMError exception is raised.

CreateDocumentType returns a TDOMDocumentType instance with the values from the QualifiedName, PublicID, and SystemID parameters assigned to its Name, PublicID, and SystemID properties.

Use CreateDocumentType to create the optional DTD instance passed as an argument to the CreateDocument method, and assigned as the DocType property in the new Document.

Errors

Raises an EDOMError exception if an invalid value is specified in the QualifiedName argument.

See also

TDOMImplementation.CreateDocument

  

Creates a new DOM Document instance.

TDOMDocumentType

  

Implements the DOM DocumentType interface from the DOM specification.

TDOMDocument.DocType

  

Document Type declaration used in the document.

IsXmlName

  

Determines if the specified value contains a valid XML element name.


Version 4.0 Generated 2025-05-03 Home