Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Arnaud_G
Contributor
Contributor

How to extract some occurences in XML source with Talend routes

Hello I need in a Talend ESB v9 route to keep only the occurences of an XML message body that have a specific value.

Example : If I required for T1 occurences,

<root>
   <occ>
      <name>A</name>
      <type>T1</type>
   </occ>
   <occ>
      <name>B</name>
      <type>T1</type>
   </occ>
   <occ>
      <name>C</name>
      <type>T2</type>
   </occ>
</root>

Should give me

<root>
   <occ>
      <name>A</name>
      <type>T1</type>
   </occ>
   <occ>
      <name>B</name>
      <type>T1</type>
   </occ>
</root>

kept in 1 message, not split per occurence.

Regards

Arnaud

Labels (1)
  • XML

0 Replies