Closed
How can I remove a specific element from an XML?
Hello,
I have this XML:
<form_ext>
<form name="nameA">A</form>
<form name="nameB">B</form>
</form_ext>
How can I remove the element <form name="nameA">A</form> from it? I need to add an element too if not present.
I want to obtain this:
<form_ext>
<form name="nameB">B</form>
<field>1</field>
</form_ext>
I have done a Java method, but is possible to do with PEGA too?
Thanks in advance.