At 12:41 PM 4/3/01 -0400, John E. Simpson wrote:
All that a CDATA section does is preserve your markup-meaningful special
>characters as plain text, rather than treating them as markup. All
>whitespace handling is per usual.
Whitespace should generally be preserved coming out of the parser, in any
Microsoft's done some weird things with whitespace in MSXML.
By default, it strips blank whitespace nodes - which XML 1.0 suggests
should be application behavior, not the default behavior of the parser.
The one place it doesn't do this is CDATA sections, leading to a persistent
myth that CDATA sections are about preserving whitespace.
That doesn't seem to be the problem the original questioner is having, though.
Simon St.Laurent - Associate Editor, O'Reilly and Associates
XML Elements of Style / XML: A Primer, 2nd Ed.
XHTML: Migrating Toward XML
http://www.simonstl.com - XML essays and books