-
XSD - Branching based on attributes
Not sure if this is possible, but it would be great if it is. I'd like to be able to branch based on attributes found in a complex type. Something like this:
<xs:complexType name="MyComplexType">
<xs:sequence>
<xs:element name="SomeElement">
<xs:complexType>
<xs:attribute name="Name" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
...where I can then define other types based on what's found in the name attribute of MyComplexType.
Similar Threads
-
Replies: 1
Last Post: 03-03-2006, 08:16 AM
-
Replies: 0
Last Post: 09-24-2005, 10:35 PM
-
By Larry Hayashi in forum Architecture and Design
Replies: 2
Last Post: 05-01-2003, 11:33 AM
-
Replies: 0
Last Post: 04-02-2002, 12:15 PM
-
By John Rigsby in forum XML
Replies: 1
Last Post: 07-31-2000, 12:08 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|