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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Grouping a multiple xml tags from different elements into the same element

Hello everyone, 

 

I need some help regarding an xml problem : 

 

I have the following file : 

 

<father>
    <primary>875539032</primary>
    <version>1</version>
    <creationTime>2018-05-17</creationTime>
    <name>NY</name>
    <id>11A12</id>
    <id>12A13</id>
    <id>13A14</id>
    <other>39xA0</other>
</father> <father> <primary>875539032</primary> <version>1</version> <creationTime>2018-05-17</creationTime> <name>NY</name> <id>11A12</id> <id>12A13</id> <id>13A14</id> <other>39xA4</other> </father>
<father> <primary>875539032</primary> <version>1</version> <creationTime>2018-05-17</creationTime> <name>NY</name> <id>11A12</id> <id>12A13</id> <id>13A14</id> <other>39xA7</other>
</father>

I want to group all the <other> in the same <father> because they have the same primary key <primary>

 

I tried to use a tXMLMap but didn't work and lost the tags <id>, it seems i can't loop on 2 elements correctly so maybe my components configuration is not OK, or maybe i don't use the right component..

 

Can someone help me please ?

 

Regards,

 

MBD

Labels (3)
1 Reply
manodwhb
Champion II
Champion II