17 Aug
17 Aug
4:58 p.m.
Try serialize($doc) instead of $doc. Ветошкин Владимир <en-trance@yandex.ru> schrieb am Fr., 17. Aug. 2018, 16:55:
Hi!
I want to write xml-data to zip-archive.
I try something like this:
let $db := db:open('test') let $doc := $db/doc[id='cb818e0d-7d49-4f78-8424-49e063d3efdf'] let $zip := archive:create(<archive:entry>file.txt</archive:entry>, $doc) return file:write-binary('test.zip', $zip)
It writes only string. How can I write full xml-data ?
-- С уважением, Ветошкин Владимир Владимирович
2792
Age (days ago)
2792
Last active (days ago)
2 comments
2 participants
participants (2)
-
Christian Grün -
Ветошкин Владимир