November 2002
Intermediate to advanced
1120 pages
21h 2m
English
The DOMImplementation interface, shown in Example 10.1, is an abstract factory that is responsible for creating two things—new Document and DocumentType objects. It also provides the hasFeature() method discussed in Chapter 9 that tells you what features this implementation supports.
package org.w3c.dom;
public interface DOMImplementation {
public DocumentType createDocumentType(
String rootElementQualifiedName,
String publicID, String systemID) throws DOMException;
public Document createDocument(String rootElementNamespaceURI,
String rootElementQualifiedName, DocumentType doctype)
throws DOMException;
public boolean hasFeature(String feature, String version);
}
|
For example, given ...
Read now
Unlock full access