Bug 1554

Summary: firing of ignorableWhitespace event differs depending on value set in feature http://xml.org/sax/features/validation
Product: Xerces-J Reporter: Stephen Bailey <usabailey>
Component: SAXAssignee: Xerces-J Developers Mailing List <xerces-j-dev>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 1.3.1   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Stephen Bailey 2001-04-27 07:40:42 UTC
Depending on the value set in feature http://xml.org/sax/features/validation, 
the ignorable whitespace does not fire consistantly.

When this value is set to true, the ignorableWhitespace event fires as expected.
When this value is set to false, the ignorable whitespace in a document is 
sometimes returned in the character event.

I have tested this using both Xerces versions 1.3.1 and 2.0.0.alpha

My application is extending the org.xml.sax.helpers.DefaultHandler class for 
handling the Xerces events.  The XML document I am validating my XML document 
against a Schema, and this problem does not appear to be present when 
validating against a DTD.

However, when I validate against a DTD using version 2.0.0.alpha, I do receive 
an Exception java.net.MalformedURLException: unknown protocol: y
after the startDocument event fires and before the first startElement event 
fires (Separate bug report to be submitted).