Hi Abhishek, I think you are looking for xdmp:node-replace: http://developer.marklogic.com/pubs/4.2/apidocs/UpdateBuiltins.html#xdmp:node-replace
You can find functions to do inserts of new elements and things like that on that page as well.. Kind regards, Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Abhishek53 S Verzonden: woensdag 15 juni 2011 11:06 Aan: General MarkLogic Developer Discussion Onderwerp: [MarkLogic Dev General] Node Replace Hi All I have my content XML as follows <sample> <sample1>A</sample1> <sample2>B</sample2> <sample3>C</sample3> <sample4>D</sample4> <sample5>E</sample5> <sample6>F</sample6> </sample> with all the possible hierarchies. The document is already present in marklogic repository. If the same document is going to be updated I need to replace the entire old content XML with the new one except the element <sample5>. What is best possible way to achieve this in a single transaction. It is like getting the <sample5> element value from the older one setting to the new coming content XML and the ingesting to marklogic but the problem is there for on the fly XML modification. Abhishek Srivastav Systems Engineer Tata Consultancy Services Cell:- +91-9883389968 Mailto: abhishek5...@tcs.com Website: http://www.tcs.com<http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general