Hi,

I am generating an XML file to be used as an import file for an application
This application requires <![CDATA[-fields

It will generate an error importing nodes like: <myElement >1</myElement >
It will be satisfied when importing nodes like:  <myElement 
><![CDATA[1]]></myElement >

According to https://docs.marklogic.com/guide/xquery/langoverview#id_71572 
(xdmp:output) I can specify elements to be exported as CDATA-values

I have this in my prolog:
xquery version "1.0-ml";
declare option xdmp:output "cdata-section-elements=myElement";

However, in my export I find
<myElement >1</myElement > in stead of <myElement ><![CDATA[1]]></myElement >

Can anyone make a suggestion about why the output-option is not exporting as I 
expect it to do>

Kind regards
Edgar Schouten
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to