different tag depends on status

1 view
Skip to first unread message

guest

unread,
Apr 29, 2008, 7:40:17 PM4/29/08
to XML Schema
Hi, I need to have a schema for web sevice return. It has Status
element which could be SCD or FLD. And if the status is SCD then it
will have elemnts for the detail information; if the status is FLD the
it will only has Message element. Example:
<return>
<status>SCD</status>
<name>test</name>
<age>12</age>
...
</return>
or
<return>
<status>FLD</status>
<message>test</message>
</return>
Reply all
Reply to author
Forward
0 new messages