View RSS Feed

Java XML

  1. The JAXP APIs

    by , 04-27-2012 at 06:05 PM
    The main JAXP APIs are defined in the javax.xml.parsers package. That package contains vendor-neutral factory classes,SAXParserFactory, DocumentBuilderFactory, and TransformerFactory, which give you a SAXParser, aDocumentBuilder, and an XSLT transformer, respectively. DocumentBuilder, in turn, creates a DOM-compliant Documentobject.

    The factory APIs let you plug in an XML implementation offered by another vendor without changing your source code. The implementation you get depends ...