Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
7 subscribers
Views
1758 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
I am using toxml() function to generate a xml file from a CDT. For some reason t
moritzw
over 11 years ago
I am using toxml() function to generate a xml file from a CDT. For some reason the elements of the xml are rendered differently when they are blank. In one case the namespace is added like this:
<someElement xmlns:xsi="
www.w3.org/.../XMLSchema-instance"
xsi:nil="true" />
In another case the element is just empty:
<anotherElement></anotherElement>
Ideally I would like the xml to not contain the elements if they are empty and are configured to be nillable. How could I do this?
Thanks, Moritz...
OriginalPostID-68300
OriginalPostID-68300
Discussion posts and replies are publicly visible
0
Pavithra Srinivasan
over 11 years ago
In toxml (), Every element in the CDT will come in the XML file, Do not think we can suppress the element itself. One option can be to check for null for individual elements in the CDT, and pass "" or 0 as the datatype may be so that this xsi message will not come. Here again, if the element is itself another nested CDT, do not think the xsi value can be controlled.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel