6 Replies Latest reply on Aug 9, 2011 2:47 AM by Tim Goodman

    Execute Script - How to Update second node in XML group

    Tim Goodman Level 1



      I have an XML variable "myXML" which is set to:














      Question - within an Execute script, how can I easily access and update the second node value? i.e. change "b" to "c"


      The following fails in Execute Script (although it is possible using an XPath expression in a SetValue


        patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/node[1]/value", "c");

      If I have square brackets in this expression then it fails with a nasty error



      Is there an easy way?