Bug 1554 - firing of ignorableWhitespace event differs depending on value set in feature http://xml.org/sax/features/validation
Summary: firing of ignorableWhitespace event differs depending on value set in feature...
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: SAX (show other bugs)
Version: 1.3.1
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-27 07:40 UTC by Stephen Bailey
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).