Question

1
Replies
133
Views
NicolaG10 Member since 2018 9 posts
Reply S.P.A.
Posted: 1 year ago
Last activity: 1 year 4 months ago
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.
Low-Code App Development Data Integration
Moderation Team has archived post
Share this page LinkedIn