RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces in the character() method

2014-09-15 Thread Michael Glavassevich
@ca.ibm.com] > Sent: Monday, September 15, 2014 9:40 AM > To: j-users@xerces.apache.org > Subject: RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces > in the character() method > > ignorableWhitespace() was only defined for use with DTDs. Sun's > implementation ma

RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces in the character() method

2014-09-15 Thread Zhu, Joe
mrgla...@ca.ibm.com] Sent: Monday, September 15, 2014 9:40 AM To: j-users@xerces.apache.org Subject: RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces in the character() method ignorableWhitespace() was only defined for use with DTDs. Sun's implementation may be doing something for XSD b

RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces in the character() method

2014-09-15 Thread Michael Glavassevich
ignorableWhitespace() was only defined for use with DTDs. Sun's implementation may be doing something for XSD but there's nothing in the specification which requires that. Xerces is behaving correctly. Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.

RE: EXTERNAL: Re: SAX Parser includes ignorable whitespaces in the character() method

2014-09-15 Thread Zhu, Joe
Michael, Thanks for your reply. The XSD does not allow mixed content. Attached is my test Java code, test xml and test xsd for your reference. Also included below is the run log for Xerces parser and for a Sun parser. When it runs with the Xerces parser, the whitespaces are reported in the cha