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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
param75
Contributor III
Contributor III

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
0683p000009MGAE.jpg

Here the Loop of category
0683p000009MGFh.jpg

Here the Input(JSON)
0683p000009MG92.jpg

An idea?

Thank's for your help !!

Labels (3)
1 Solution

Accepted Solutions
param75
Contributor III
Contributor III
Author

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

View solution in original post

3 Replies
Anonymous
Not applicable

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

0683p000009MG3S.png
Eric
param75
Contributor III
Contributor III
Author

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

Hi Eric,

I have tHmap with xml - jsonoutput.

in json output, some of the elements are empty/null and by default all empty elements are discarded in output and appearing in tRESTResponse.

i have applied not equal function in 'Emit' tab of element on jsonouput.

but  if have multiple elements with empty values, only first element is empty is appearing through tHmap output and response.

 

is there a way to ensure all empty elements to pass through tHmap ?