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.
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 wronglet $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 URIThanks & RegardsDharmendra Kumar Singh