: [MarkLogic Dev General] Renaming an XML doc
This doesn't save the properties of the document such as its collection
membership, properties and permissions.
The marklogic extension to Xmlsh provides a rename facility which was
graciously copied from code posted on this list years ago ...
Which
ion
Subject: Re: [MarkLogic Dev General] Renaming an XML doc
There is no operation to move a document, but you can create a new
document and delete the old document in the same transaction. For
example, the following will create /foo/bar.xml in one transaction, then
create /bar/bar.xml from /foo/bar
l")
(: this leaves /bar/bar.xml, with no /foo/bar.xml :)
-Danny
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Abishek N
Sent: Friday, February 25, 2011 1:11 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Renamin
Hello all,
Can we rename or move an XML document ? As in if a document
abc.xml is located at following path /root/abc.xml. can we rename it to
/root/xyz.xml ? or can we move it to /users/abc.xml ? what about rename and
move at the same time.. to /users/xyz.xml? without having to delete t