Programmer's Guide > Interfaces > W3C DOMImplementation interface > createDocumentType method
  
createDocumentType method
Creates an empty DocumentType node. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a DocumentType.
HTML-only DOM implementations do not need to implement this method.
createDocumentType(qualifiedName, publicId, systemId)
Parameters
StringqualifiedName
The qualified name of the document type to be created.
StringpublicId
The external subset public identifier.
StringsystemId
The external subset system identifier.
Returns
DocumentType. A new DocumentType node with Node.ownerDocument set to null.
Throws
DOMException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the qualifiedName is malformed.