Java Tutorial - Java Scipt : XML Parser Selection

Java Tutorial - Java Scipt :

XML Parser Selection


There’s no doubt that Sun has caught on to the XML trend early. By bundling the JAXP (Java API for XML Processing) APIs, which include DOM, SAX, and XSLT, JDK 1.4 has made it easy for Java programmers to work with XML. JAXP keeps with Java’s tradition of specifying APIs, not implementations.

The bundled implementation is decent but for best performance, features, and ease –of use you’ll want to build your applications using some of the open source XML tools available. For what it’s worth, these tools generally build upon the standard JAXP interfaces. Many of these implementations offer improved performance and resource usage, which is nice in and of itself. The real benefits, though, come from the higher-level interfaces. More can be
accomplished in far fewer lines with JDOM or dom4j, and it makes sense to use them instead of the default APIs. Other projects offer even more elaborate features, such as automated binding of Java objects to XML, which makes data objects directly from an XML document. In the next section, we’ll cover many of the open source Java XML tools available.