Reputation: 976
how to use encoding while download the xml from Marklogic DB to physical path?
Sample Query:
xdmp:save("C:\test\sample.xml", doc(uri))
Upvotes: 1
Views: 76
Reputation: 11214
Have you checked the documentation? There's an actual example there:
xdmp:save("C:\test\sample.xml", doc(uri),
<options xmlns="xdmp:save">
<output-encoding>utf-8</output-encoding>
</options>)
Upvotes: 2