cMap - creates redundant XML element

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?

 

Untitled5.pngMaping in cMapUntitled6.pngthe output XMLUntitled7.pngTesting Route


Accepted Solutions
Nine 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


All Replies
Nine 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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads