The benefits of using JAXP are:
- JAXP leverages SAX and DOM parser standards to provide a choice between parsing XML data as a stream of events or building a tree-based structure representation of the data.
- JAXP supports the XML Stylesheet Language Transformations (XSLT) standard, which enables you to control the presentation of the XML data and convert the data to other XML documents or to other formats, such as HTML.
- JAXP supports namespaces. Therefore, it enables you to work with schemas that might have naming conflicts.
- JAXP is flexible because it enables you to use any XML-compliant parser from within your application. JAXP provides a pluggability layer, which allows you to plug in an implementation of the SAX or DOM APIs.
|