[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Creates a new DOM Document instance.
Source position: laz2_dom.pas line 449
public function TDOMImplementation.CreateDocument( |
const NamespaceURI: DOMString; |
const QualifiedName: DOMString; |
doctype: TDOMDocumentType |
):TDOMDocument; |
NamespaceURI |
|
NameSpace URI for the root element in the XML document. |
QualifiedName |
|
QualifiedName for the root element in the XML document. |
doctype |
|
Document type appended to the XML document when assigned. |
XML document created in the method.
CreateDocument is a TDOMDocument function used to create a new DOM Document instance.
CreateDocument implements the method defined for the DOMImplementation interface in the DOM Level 2 specification. It creates a TXMLDocument instance that is used as the return value for the method.
The NamespaceURI and QualifiedName arguments provide the namespace, prefix, and tag name used for the root Element in the document instance.
doctype contains the optional TDOMDocumentType instance (or DTD) for the new document. When doctype is assigned, its OwnerDocument property is set to the new document instance created in the method.
CreateDocument raises EDOMError exceptions for the following:
Version 4.0 | Generated 2025-05-03 | Home |