Hello, I need to make the following implementation:
Input: XML document + Xpath expression (to select one or more nodes) + New Text Output: The original document will contain the 'New Text' (which, of course can be an XML document fragment too) instead of the nodes matched by the Xpath expression. Example: Document = <x> <y> blabla </y> </x> Xpath = /x/y New Text = <z> foo </z> The Output document: <x> <z> foo </z> </x> I can probably do this by using selectSingleNode and then manipulate the document object using DOM API in order to replace the selected node with my new text. However, I'm pretty sure it is something very easy to do with a xsl transform. Can someone guide me how to do that? What stylesheet should I use? Regards, Ori. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp