5 Replies Latest reply on Jul 8, 2009 5:56 AM by christophsk

    Using replace(...) in XML

    christophsk

      I have an XML document that looks like:

       

      <Task name="myName" loaded="true" priority="1" >

      <Preference>

         <Element1>

           value1

         </Element1>

       

         <Element2>

           value2

         </Element2>

      </Preference>

      </Task>

       

      This is all contained in an XML variable called 'myXML'. No

      problems so far.

       

      Now I wish to change say the value of Element1 to

      another value 'foo'.

       

      I've tried all sorts of stuff and can't get this to work.

      If the particular property is not found the XML remains

      unchanged of course.

       

      What's the secret sauce?