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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Talend
Creator
Creator

Put a group for my XML file

Hello everybody,

I have a problem to make my XML file.

I have several data and I didn't have any problem.

But I have this data "partSt" and I would like to define it like a group not like a loop.

For ONE line, I have several entries/data in "PartSt".

Example :

<?xml version="1.0" encoding="UTF-8"?>

<structures>

 <structure IdInterne="ABC">

   <intitule>TEST</intitule>

   <sigle>TEST</sigle>

   <partSt>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>A1</numStructLien>

       </referenceStruct>

       <typeAdhesion>A2</typeAdhesion>

     </adhesionStruct>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>B1</numStructLien>

       </referenceStruct>

       <typeAdhesion>B2</typeAdhesion>

     </adhesionStruct>

   </partSt>

 </structure>

</structures>

0693p00000AZM5eAAH.png

Who can help me ?

Many thanks.

Eric VINCENT

Labels (2)
2 Replies
Anonymous
Not applicable

@Eric Vincent​ , you are able to set a group element, however, the example file shows that partSt is a loop element, what are your expected result?

 

Regards

Shong

Eric_Talend
Creator
Creator
Author

Hi,

 

Concretely, I can have several "structure" and in one "structure", I can have one or several "partSt".

 

Like this :

 

<?xml version="1.0" encoding="UTF-8"?>

<structures>

 <structure IdInterne="ABC">

   <intitule>TEST</intitule>

   <sigle>TEST</sigle>

   <partSt>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>A1</numStructLien>

       </referenceStruct>

       <typeAdhesion>A2</typeAdhesion>

     </adhesionStruct>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>B1</numStructLien>

       </referenceStruct>

       <typeAdhesion>B2</typeAdhesion>

     </adhesionStruct>

   </partSt>

 </structure>

 <structure IdInterne="XYZ">

   <intitule>TEST_xyz</intitule>

   <sigle>TEST_xyz</sigle>

   <partSt>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>A1_xyz</numStructLien>

       </referenceStruct>

       <typeAdhesion>A2_xyz</typeAdhesion>

     </adhesionStruct>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>B1_xyz</numStructLien>

       </referenceStruct>

       <typeAdhesion>B2_xyz</typeAdhesion>

     </adhesionStruct>

     <adhesionStruct>

       <referenceStruct>

         <numStructLien>C1_xyz</numStructLien>

       </referenceStruct>

       <typeAdhesion>C2_xyz</typeAdhesion>

     </adhesionStruct>

   </partSt>

 </structure>

</structures>

 

Regards,

Eric