#1 2012-06-13 18:47:06

jdarby
New member
Registered: 2011-12-28
Posts: 5

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>

Offline

#2 2012-06-14 07:30:18

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tXMLMap xsi:nil attribute

Hi

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

Regards,
Pedro


Only Paranoid Survive.

Offline

Board footer

Powered by FluxBB