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.
Articles Related
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,
- 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.