Hi Mohanraj,

There are many ways to deal with this, depending on what you are really trying 
to accomplish.  One way is to use xdmp:directory 
(http://developer.marklogic.com/pubs/4.1/apidocs/Ext-9.html#xdmp:directory) to 
get all of the documents in a database directory.  Then you can put that in a 
flwor and do whatever you want with the documents.

For example:

<all-docs-in-dir>{
for $x in xdmp:directory("/foo/", "1")
return
<doc-contents>{$x/*}</doc-contents>
}</all-docs-in-dir>

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Mohanraj
Sent: Wednesday, September 23, 2009 2:42 AM
To: [email protected]
Subject: [MarkLogic Dev General] how to generate a XML file with database 
directory structure as input????

Hi,

How to generate a XML file with database directory structure as input????
Is there any API???
Kindly tell me with sample source code snippets!!!!!!

Thanks & Regards,
Mohanraj.D,
Software Programmer,
Laserwords Private Limited.
+91-9445451318
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to