createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype) Creates a DOM Document object of the specified type with its document element. | |
createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId) Creates an empty DocumentType node. | |
boolean | hasFeature(java.lang.String feature, java.lang.String version) Test if the DOM implementation implements a specific feature. |
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype)
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
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
.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.public boolean hasFeature(java.lang.String feature, java.lang.String version)
DOMImplementation
interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. See also the Document Object Model (DOM) Level 2 Core Specification.