Legally use CDATA in XML
Posted
by idazuwaika
on Stack Overflow
See other posts from Stack Overflow
or by idazuwaika
Published on 2010-03-18T08:24:55Z
Indexed on
2010/03/18
8:31 UTC
Read the original article
Hit count: 486
Hi,
I have an XML file which XML parser choke on. A part of it is :
<closedDeal><customer><![CDATA[ABC ]]></customer></closedDeal>
The error I got is
The literal string ']]>' is not allowed in element content. Error processing resource
What is the correct way of using CDATA? I need CDATA because the data is read from Excel, and could contain illegal character such as ALT+ENTER whitespace.
Please help. Thanks.
© Stack Overflow or respective owner