Data Mapper - Map - Hide empty element in xml document

Highlighted
One Star

Data Mapper - Map - Hide empty element in xml document

Hi,
Context:
Structure JSON -> Map -> Structure XML

I wish hide XML element if element no matching with MapValues.


Here the MapValue of category


Here the Loop of category


Here the Input(JSON)


An idea?

Thank's for your help !!

One Star

Re: Data Mapper - Map - Hide empty element in xml document

Hi,
I added a filter on the loop function and it works:


Eric
One Star

Re: Data Mapper - Map - Hide empty element in xml document

Hi Eric,
It work! The problem was that I added category field of Input and not Output.
Thank you very much !

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog