I want to save a document to a file that looks like this...
<?xml version="1.0" encoding="UTF-8" ?>
<something>...</something>
How do I add the xml encoding to the doc as I save it out?
I have tried quite a few combinations including what's below, but must be
missing something simple (it usually is).
let $h := '<?xml version="1.0" encoding="UTF-8" ?>'
let $s := element something { "..." }
return xdmp:save("filename.xml", ($h,$s) )
Thanks in advance!
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general