DOM Features : DOM : XML : Java examples (example source code) Organized by topic

Java
C++
PHP
Java Home »  XML   » [  DOM  ]  Screenshots 
 



DOM Features




/*
  Java, XML, and Web Services Bible
  Mike Jasnowski
  ISBN: 0-7645-4847-6
*/
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"));
           }
       }
}

           
       
Related examples in the same category
1.  XML Document information by DOM
2.  Using DOM for Syntax Checking
3.  Using the DOM Parser to Build a Document Tree Using the DOM Parser to Build a Document Tree
4.  DOM level 2 Events DOM level 2 Events
5.  Searching through a document
6.  Check a vendor's DOM implementation Check a vendor's DOM implementation
7.  List an XML file after building it into a JDOM Document List an XML file after building it into a JDOM Document
8.  Make up and write an XML document, using JDOM Make up and write an XML document, using JDOM
9.  Make up and write an XML document, using DOM Make up and write an XML document, using DOM
10.  Simple demo of JDOM
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.