Sini,

I'm not sure exactly what you mean, but you can do this with simple templating:

let $doc1 := <doc><foo/></doc>
let $doc2 := <doc2><foo2/></doc2>
let $combined := <combined-doc>{$doc1/node(), $doc2/node()}</combined-doc>
return xdmp:save("c:/tmp/combined-doc.xml", $combined)

Yours,
Damon
--
Damon Feldman
Sr. Principal Consultant, MarkLogic

From: [email protected] 
[mailto:[email protected]] On Behalf Of sini narayanan
Sent: Monday, December 03, 2012 8:39 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Export from Marklogic

Hi All,

Does anyone have an idea on how to combine two xml files and then save it in 
the file system using xdmp:save?

Thanks

On Mon, Dec 3, 2012 at 12:22 PM, sini narayanan 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I want to export the xml files inside Marklogic into a CSV in the file system. 
Is it possible to save a  file inside repository into a file system using 
xquery ?

Thanks

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to