Hi Sarah,
Whitespace text nodes are only ignorable if you have a DTD or schema with a
content model that's says there's no PCDATA in an element's content.
Otherwise, they are considered significant.
You could parse your documents using SAX, filter out the whitespace-only
text nodes, and build the DOM yourself. You could also walk the DOM after
it's built and remove the whitespace nodes.
Dave
"Leitner, Sarah
M. [Contractor]" To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
<leitners@spawar cc: (bcc: David N
Bertoni/Cambridge/IBM)
.navy.mil> Subject: help!
setIncludeIgnorableWhitespace problem
01/14/2003 08:11
AM
Please respond
to xerces-c-dev
Hello! I am having trouble with the setIncludeIgnorableWhitespace command.
I
am using code like the following to set it up:
XercesDOMParser * parser = new XercesDOMParser;
parser->setIncludeIgnorableWhitespace(false);
Both me and my colleague have tried it and neither of us has gotten it to
work. Could you tell us what we are doing wrong? I have to be able to
accept
documents with spaces, as someone else writes them and they are not
directly
under my control.
Thanks
Sarah Leitner
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: help! setIncludeIgnorableWhitespace problem
David N Bertoni/Cambridge/IBM Tue, 14 Jan 2003 09:43:46 -0800
- help! setIncludeIgnorableWhitespace proble... Leitner, Sarah M. [Contractor]
- Re: help! setIncludeIgnorableWhitespa... Gareth Reakes
- David N Bertoni/Cambridge/IBM
