TDOMImplementation.CreateDocumentType function
Creates a DOM Document Type using the specified arguments.
Declaration
function CreateDocumentType(const QualifiedName: DOMString;
const PublicID: DOMString;
const SystemID: DOMString): TDOMDocumentTypeDescription
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
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
