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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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>
Labels (3)
1 Reply
Anonymous
Not applicable
Author

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