public interface: DOMImplementation
All Known Implementing Classes:
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 3 Core Specification.
|Method from org.w3c.dom.DOMImplementation Detail:|
public Document createDocument(String namespaceURI,
DocumentType doctype) throws DOMException
Creates a DOM Document object of the specified type with its document
Note that based on the
DocumentType given to create
the document, the implementation may instantiate specialized
Document objects that support additional features than
the "Core", such as "HTML" [DOM Level 2 HTML]
. On the other hand, setting the
DocumentType after the
document was created makes this very unlikely to happen.
Document creation methods,
createHTMLDocument [DOM Level 2 HTML]
, can be used to obtain specific types of
public DocumentType createDocumentType(String qualifiedName,
String systemId) throws DOMException
Creates an empty
DocumentType node. Entity declarations
and notations are not made available. Entity reference expansions and
default attribute additions do not occur..
public Object getFeature(String feature,
This method returns a specialized object which implements the
specialized APIs of the specified feature and version, as specified
in . The specialized object may also be obtained by using
binding-specific casting methods but is not necessarily expected to,
as discussed in . This method also allow the implementation to
provide specialized objects which do not support the
public boolean hasFeature(String feature,
Test if the DOM implementation implements a specific feature and
version, as specified in .