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