September 2002
Intermediate to advanced
608 pages
14h 20m
English
There were a number of XML processors for Java before Sun jumped in and developed the Java API for XML Parsing (JAXP). The different processors were even mostly interchangeable, because they adhered to the standards for DOM and SAX. But there was one significant area in which you would need to change your code depending upon the processor you used. The import statements and creation of the processor itself tended to be vendor-specific.
For example, let's look at the code for creating a DOM parser with and without JAXP:
//Creating a DOM Parser prior to JAXP import org.apache.xerces.parsers.DOMParser; public class myClass { public static void main(String[] args) { DOMParser parser = new DOMParser(); // use it . . . ...Read now
Unlock full access