Despite setting the http://apache.org/xml/features/validation/warn-on-duplicate-attdef and http://apache.org/xml/features/validation/warn-on-undeclared-elemdef features to true, the SAX parser does not seem to report either duplicate attribute defintions or undeclared elements by calling the warning() method of ErrorHandler like it should.