If JRE-implementation you use to run you applications doesn't contain a built-in SAX parser implementation (or you do not like it) you can configure it using system properties.

When SAXParserFactory is asked to produce new instances, it searches system properties for entry with name javax.xml.parsers.SAXParserFactory. This property should contains a name of the class implemeneting SAX interface.

Example below shows how to force Apache implementation of SAX:

 import java.io.*;
import org.w3c.dom.*;

public class Test {
    public static void main(String[] args) throws Exception {
        
        // Sets the sax parser property to use the xerces parser;
        // Here any other SAX-implementation may be refered:
        System.setProperty("avax.xml.parsers.SAXParserFactory",
                "org.apache.xerces.parsers.SAXParser");
        
        // creating built-in (default) implementation of SAX:
        SAXParserFactory factory = SAXParserFactory.newInstance();
        
        // create SAX-parser...
        SAXParser parser = factory.newSAXParser();
        
        // now we are ready to parse XML data...
    }
}