org.w3c.dom
Interface DOMImplementation
java.lang.Object
|
+--org.w3c.dom.DOMImplementation
public interface DOMImplementation
createDocument
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype)
Creates a DOM Document object of the specified type with its document
element.
Since:Parameters:
Returns:
Throws:
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
createDocumentType
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
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
.
Since:Parameters:
Returns:
- 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.
hasFeature
public boolean hasFeature(java.lang.String feature, java.lang.String version)
Test if the DOM implementation implements a specific feature.
Parameters:
Returns:
true
if the feature is implemented in the
specified version, false
otherwise.
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.