steveliles/dsl4xml — pull request #1 by ntamas (2012-06-06 12:30:28+00:00)
Title: Fixing a bug in SAXDocumentReader.TagHandler

Fixed a bug that can be triggered in the current trunk version as follows:

1. Create a SAXDocumentReader with a tag handler T that has no subhandlers.
2. Create an XML file where the tag T handled by the above tag handler has some subtags that should be ignored.
3. When parsing the tag T in TagHandler.startTag, the method returns with the same tag handler when it encounters a subtag instead of the ignore handler. This puts the context stack out of sync with the XML tree and sooner or later one will encounter an EmptyStackException when the parser tries to peek into the stack.

This commit fixes the issue by modifying TagHandler to return the ignore handler instead of "this" when a tag handler has no subtag handlers and it encounters a subtag.