You are not logged in.
Announcement
Unanswered posts
|
Hi
Sorry. As far as I know, TOS cannot support creating a xml node dynamically...
Regards,
Pedro
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>