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
9 subscribers
Views
1380 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I need to create XML with the following pattern. <Root>
piyusha
over 10 years ago
I need to create XML with the following pattern.
<Root>
<Entity type="Employee">
<EmployeeNumber/>
</Entity>
</Root>
I am using toxml function to convert the CDTs into XML. But here problem is with attribute of Entity element i.e. type="Employee"
How can we have the XSD with attributes(default value of type attribute will be "Employee") which can be imported with out any error. I tried with many annotations but it seems to be not working.
Could any please share the approach. Thanks
OriginalPostID-141429
OriginalPostID-141429
Discussion posts and replies are publicly visible
0
kdimitrov
over 10 years ago
Hi Piyusha,
You need to use the syntax for attributes as detailed in creating an XSD, such as: <xsd:attribute name="type" type="xsd:string"/>. It goes straight after </xsd:sequence> and will be available in the designer for use as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel