Hi Srikanth,

In order for the parser to determine what is ignorable whitespace and what
isn't, your document requires a DTD grammar, otherwise it cannot know what
is ignorable and what isn't. And I believe that you should only be getting
ignorableWhitespace calls for whitespace which occurs within an element
that does not have character data (#PCDATA) in its content model, (i.e.
not mixed content).

I hope that helps.

On Sat, 21 Jun 2003, Srikanth Sampath wrote:

> Hi,
> I would like to retain the whitespaces during parsing.
>
> I find that the callback ignorableWhitespace() is NOT called when whitespaces
> are encountered during parsing.  The callback characters() is invoked.
> It's mentioned that all validating parsers should use ignorableWhitespace()
> for handling whitespaces.  Do we need to set anything in the SAX2 XERCES C++
> parser for ignorableWhitespace to be called?
>
> Thanks,
> --Srikanth
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--------------------
Michael Glavassevich
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to