Hi Samah,
Regarding the xml declaration: keep in mind that the XML and DOCTYPE declaration are not really part of the document node you have within your code, and only added upon serialization. Xdmp:save and xdmp:zip apparently have their own serialization defaults. It might help to declare output serialization options at the top of your XQuery, but you can also use xdmp:quote to explicitly specify serialization options for a specific document. You can find an example here: http://stackoverflow.com/questions/14886242/in-marklogic-5-x-how-can-i-include-a-doctype-declaration-in-a-zipped-document Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Samah Abu-Mahmeed *Verzonden:* dinsdag 5 maart 2013 22:13 *Aan:* [email protected] *Onderwerp:* [MarkLogic Dev General] xdmp:zip-create Hi all, I have a script that creates word docs of xml files. It returns a zipped file of all the word docs. [image: Description: C:\Users\SABU-M~1.JMP\AppData\Local\Temp\SNAGHTML14f3505e.PNG] 1. Is there a way to re-name the response? I can set the type of the response. I want also to rename it 2. The output of the step in line 4 are word ML files. When I save the output of this step to the file system, the word ML files have the Xml declaration <?xml version="1.0" encoding="UTF-8"?> But when I save the output of the zip-create step, I lose that declaration. How do we tell zip-create to keep the XML declaration? Best, -Samah
<<image001.png>>
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
