Antony
Antony

Reputation: 976

How to use encoding while save the XML from DB to folder

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

Answers (1)

Tamas
Tamas

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

Related Questions