Thanks for your reply Kristian
So I gone through the documentation and I found that function file:write take parameters path and item so first parameters I am passing the local directory path where documents has to be saved and second argument I am passing the item
It will be very helpful if you provide the example
On 06-Jul-2017 11:27 PM, "Kristian Kankainen" kristian@keeleleek.ee wrote:
You only provide a path to file:write whichbgets overwritten by each for-loop, so you end up with just one file with the contents of the last run of the for-loop. You should instead provide a file name for each file you want to write. 6. juuli 2017 1:42 PM kirjutas kuupäeval Dharmendra Singh < dharam.mahi@gmail.com>:
Hi All ,
i have to save the XMLs files from the DB but i am not able to do that below is my code, this code is generating only one kb file so can any one tell me where i am doing wrong
let $localpath := 'D:/2017/doctest/xmls' for $xmls in db:open('test')
return file:write($localpath,$xmls,map{"method": "xml"})
Note: i am able to do using import command but i don't have to copy all data from the DB i have to copy by URI
Thanks & Regards
Dharmendra Kumar Singh