Question

1
Replies
177
Views
Nicola Gazzilli (NicolaG10)
Reply S.P.A.
Consultant
Reply S.P.A.
IT
NicolaG10 Member since 2018 9 posts
Reply S.P.A.
Posted: May 6, 2019
Last activity: May 27, 2019
Posted: 6 May 2019 5:43 EDT
Last activity: 27 May 2019 2:13 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.