Under no circumstances, should you ever use javax.xml.parsers.SAXParser
or SAXParserFactory
These classes were designed to fill holes in SAX1. They are unnecessary and actively harmful when working with SAX2.
Use XMLReader
and XMLReaderFactory
instead