AvailabilityDOM Level 2 Core SynopsisDocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException; Arguments
ReturnsA new DocumentType object with an ownerDocument property of null. ThrowsThis method may throw a DOMException with one of the following code values:
DescriptionThis method creates a new DocumentType node. This method specifies only an external subset of the document type. As of Level 2, the DOM standard does not provide any way for specifying an internal subset, and the returned DocumentType does not define any Entity or Notation nodes. This method is useful only with XML documents and may not be supported by HTML-only implementations. |