tXMLMap xsi:nil attribute

One Star

tXMLMap xsi:nil attribute

I'm writing to web services and need to signify that a value is null using the attribute xsi:nil="true" rather than leaving an empty tag or no tag. I can add the attribute to the xml elements and just change the values between true and false but it's messy because xsi:nil="false" is unnecessary because the receiver can figure out that the tag isn't null if it's not set to true. Is there a cleaner way to do this?

Ex:
<a xmlns:xsi="whateverthenamespaceis">
<b xsi:nil="true"/>
<c xsi:nil="false">blablabla</c>
</a>
|
|
|
V
<a xmlns:xsi="whateverthenamespaceis">
<b xsi:nil="true"/>
<c>blablabla</c>
</a>
One Star

Re: tXMLMap xsi:nil attribute

Hi
Sorry. As far as I know, TOS cannot support creating a xml node dynamically...
Regards,
Pedro

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

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

Download