Jaxp - Plugin

About

The factory APIs for SAX, STAX and XSLT let you plug in an XML implementation offered by another vendor without changing your source code.

How to change it

The implementation you get depends on the setting of the javax.xml.parsers.SAXParserFactory, javax.xml.parsers.DocumentBuilderFactory, and javax.xml.transform.TransformerFactory system properties, using:

  • System.setProperties() in the code,
  • <sysproperty key=“…” value=“…”/> in an Ant build script,
  • or -DpropertyName=“…” on the command line.

The default values (unless overridden at runtime on the command line or in the code) point to Sun's implementation.


Powered by ComboStrap