[MarkLogic Dev General] Preserving CDATA in Mark Logic
Norman Walsh
ndw at nwalsh.com
Tue Sep 2 08:13:42 PDT 2008
"Sakthikumar, Vasu" <Vasu.Sakthikumar at simonandschuster.com> writes:
> I tried inserting an XML document with CDATA, but the CDATA is not
> preserved.
>
> Here's the query I ran.
>
> xdmp:document-insert('/TEST.XML', <a><![CDATA[test_cdata]]></a>)
>
> How do I preserve CDATA in the XML?
What's your motivation for preserving the CDATA markers? A CDATA section
is really just an escaping mechanism in the serialization.
Be seeing you,
norm
--
Norman Walsh
Principal Technologist
Mark Logic Corporation
More information about the General
mailing list