Locating a DOMImplementation
So far, I've deliberately avoided the crucial question of how one creates a DOMImplementation object in the first place. Because DOMImplementation is an interface, not a class, it cannot be instantiated directly through its own constructor. Instead you have to build it in one of three ways:
Construct the implementation-specific class.
Use the JAXP DocumentBuilder factory class.
Use the DOM3 DOMImplementationRegistry factory class.
Implementation-Specific Class
Directly constructing an instance of the vendor class that implements DOMImplementation is the simplest of the three alternatives. However, the name of this class and how it's created vary from one implementation to the next. For example, in Xerces the org.apache.xerces.dom.DOMImplementationImpl ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access