Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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>
Who can help me ?
Many thanks.
Eric VINCENT
@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
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