Six Stars

cMap - creates redundant XML element

I created the XML(from JSON) with cMap but it is created with one additional tag that causes XML validation(with XSD) to fail.

The element created is in red square.

The 6 Party elementes are ok but the 7th closing tag is redundant and it cuases validation to fail.

Is there are way that <PARTY/> tag wouldn't be created?

 

Maping in cMapMaping in cMapthe output XMLthe output XMLTesting RouteTesting Route

1 ACCEPTED SOLUTION

Accepted Solutions
Eight Stars

Re: cMap - creates redundant XML element

Hi,

 

A 1st solution is to  add a fixedloop on your PARTY[7]  element and set 0 as count (You will have to use a constant).

 Capture.PNG

Another solution is to do only 5 unroll and set a fixedloop on PARTY[6] with 1 as count.

 

Regards.

 

Eric

1 REPLY
Eight Stars

Re: cMap - creates redundant XML element

Hi,

 

A 1st solution is to  add a fixedloop on your PARTY[7]  element and set 0 as count (You will have to use a constant).

 Capture.PNG

Another solution is to do only 5 unroll and set a fixedloop on PARTY[6] with 1 as count.

 

Regards.

 

Eric