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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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?

 

0683p000009LrRP.pngMaping in cMap0683p000009Lr5p.pngthe output XML0683p000009Lr99.pngTesting Route

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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).

 0683p000009LrRZ.png

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

 

Regards.

 

Eric

View solution in original post

1 Reply
Anonymous
Not applicable
Author

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).

 0683p000009LrRZ.png

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

 

Regards.

 

Eric