import org.apache.xerces.dom.DOMImplementationImpl;
import org.w3c.dom.DOMImplementation;
public class DOMFeatures {
public static void main(String args[]) {
DOMImplementation domImpl = DOMImplementationImpl.getDOMImplementation();
String features[] = { "Traversal", "HTML", "CSS", "Range", "XML", "Views", "Events" };
for (int i = 0; i < features.length; i++) {
System.out.println("Has " + features[i] + " = " + domImpl.hasFeature(features[i], "2.0"));
}
}
}
|