DOM implementation

The DOMImplementation interface defines a single method, called hasFeature, which is used to determine the extent of DOM support that the application/parser has. This method returns a boolean value, with 'true' indicating support for the given feature:

boolean hasFeature( String feature, String version);

It can be called a number of times, each time testing for support for a particular feature, or 'module'. The name of the module is passed as the first parameter. In DOM Level 1, this method can be called to test for support for 'Core' DOM features, and for additional 'XML' or 'HTML' features.

It is also necessary to check which version of the DOM is supported in each case, and the DOM version is therefore passed as the second ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.