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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

write a XML with multiple property name/value ?

Hello,

 

How can I properly write this kind of XML file with Talend ?

 

...

<person>
<property name="firstname" value="john" />
<property name="lastname" value="doe" />
<property name="birthdate" value="010118" />
<property name="gender" value="M" />
</person>

...

Datas come from a simple flat flow which look like this : 

0683p000009LzKI.png

 

Use only tXmlmap look tricky : 

0683p000009Lzy3.png

 

Maybe tFileOutputXml or tAdvancedFileOutputXml but don't see how.

 

Thank you for help!

Labels (3)
1 Reply
vapukov
Master II
Master II

 

Hi

 

tMap -> tFileOutputXML

0683p000009LzvU.png

 

0683p000009LzEA.png

 

output as expected

<?xml version="1.0" encoding="ISO-8859-15"?>
<interface>
  <pers>
    <person>
      <property name="firstname" value="john"/>
      <property name="lastname" value="doe"/>
      <property name="birthdate" value="010118"/>
    </person>
  </pers>
</interface>