The SAX parser behavior can be controlled using so called features a properties.
For optional SAX parser's features see http://www.saxproject.org/?selected=get-set
For more details on properties and features see Use properties and features in SAX parsers (IBM DeveloperWorks/XML).