Question: What is relation between JAXP
Answer: JAXP is a set of interfaces and
Xerces is one of JAXP implementations.
JAXP plays the same role for Xerces like Oracle's JDBC Driver for Oracle.
JAXP is an API, more accurately called an abstraction layer. JAXP
doesn't provide a new ways for XML parsing , or adds new possibilities and
functionality to handling Java with XML . Instead, JAXP makes it easier to use
SAX and DOM to deal with some difficult tasks. It also makes it possible to
handle some vendor-specific tasks in a vendor-neutral way.
The Java API for XML Processing (JAXP) supports processing of XML documents
using DOM, SAX, and XSLT. JAXP enables applications to parse and transform XML
documents independent of a particular XML processing implementation.
Depending on the needs of the application, developers have the flexibility to
swap between XML processors (such as high performance vs. memory conservative
parsers) without making application code changes.
Thus, application and tools developers can rapidly and easily XML-enable their
Java applications for e-commerce, application integration, and dynamic Web
publishing. Just added into the JAXP 1.2 reference implementation is support for
XML schema and an XSLT compiler (XSLTC). These new features are also available
as part of the Java Web Services Developer Pack (Java WSDP) v1.0_01 and as part
of the Java XML Pack Summer 02 Update Release.
5 comments | | Score: 4.4