Skip to content

XML DOM: DOMImplementation Object

How to use the DOMImplementation object in XML DOM to create documents, document types, and check feature support with methods like createDocument(), createDocumentType(), and hasFeature().

The DOMImplementation object provides a number of methods for performing operations that are independent of any particular instance of the document object model.

Methods

Method Description
createDocument(namespaceURI, qualifiedName, doctype) It creates a DOM Document object of the specified type with its document element.
createDocumentType(qualifiedName, publicId, systemId) It creates an empty DocumentType node.
getFeature(feature, version) This method returns a specialized object which implements the specialized APIs of the specified feature and version.
hasFeature(feature, version) This method tests if the DOM implementation implements a specific feature and version.
Navigation