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

2014-09-15 Thread Zhu, Joe
ut 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.ibm.com E-mail: mrgla...@apache.org "Zhu, Joe" wrote on 09/15/2014 09:41:33 AM: > Michael, >

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

2014-09-15 Thread Zhu, Joe
determine which whitespaces are 'ignorable'. Thanks. Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org "Zhu, Joe" wrote on 09/11/2014 07:00:11 PM: > I am writing an app which need to access al

SAX Parser includes ignorable whitespaces in the character() method

2014-09-11 Thread Zhu, Joe
I am writing an app which need to access all text content in XML. According to the ContentHandler API, this could be accomplished by using a validating parser and the characters() method. But with the Xerces parser, the characters() method could contain ignorable whitespaces (XML formatting whi

xerces failed to detect invalid message in schema validation error when DOCTYPE is specified

2013-10-22 Thread Zhu, Joe
Does anybody know if this is a bug or a feature or I am missing something? I am validating xml against my schema. If I pass in an unrelated xml message, it fails the schema validation as expected. But if I add a DOCTYPE declaration to the xml message, it PASSES the schema validation! (no error w