[Expat-discuss] CDATA and newlines
Jani Pellikka
jpellikk at ee.oulu.fi
Thu Mar 24 12:36:29 CET 2005
Hi,
Expat parser seems to remove all newlines and other
white space from between the XML tags. I had understood
that with CDATA tag all the material inside would be left
as it were but even then the parser removes all newlines.
Is there any way to preserve all the material inside CDATA
tag untouched with Expat parser?
-- example --
<?xml version="1.0" encoding="ISO-8859-1"?>
<![CDATA[first line material
second line material]]>
Unwanted outcome:
first line material second line material
Wanted outcome:
first line material
second line material
-- example --
Thanks in advance,
--
Jani
More information about the Expat-discuss
mailing list