Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

pedro
2012-06-14 07:30:18

Hi

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

Regards,
Pedro

jdarby
2012-06-13 18:47:06

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>

Board footer

Powered by FluxBB