[jdom-interest] Bug in SAXHandler: ignorable white space is thrown away

Jason Hunter jhunter at acm.org
Mon Apr 30 22:20:11 PDT 2001


Elliotte Rusty Harold wrote:
> 
> The SAXHandler class used by SAXBuilder does not override this SAX
> method:
> 
> public void ignorableWhitespace(char[] ch,
>                                 int start,
>                                 int length)
>                          throws SAXException
> 
> This means that text nodes contained entirely of ignorable white space
> are thrown away. For example, when given this document

I'll integrate a patch if you submit it.

> DOMBuilder exhibits this bug as well, though I'm not sure why.

If you figure it out, would be good to have a patch here too.

-jh-



More information about the jdom-interest mailing list