[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schema quiz: 3 elements and at least one must be prese
> Consider this problem: you have 3 elements - A, B, C - and you need at > least one of them to be present in your XML instance document. How about: <xs:element name="baseType"/> <xs:element name="A" substitutionGroup="baseType"/> <xs:element name="B" substitutionGroup="baseType"/> <xs:element name="C" substitutionGroup="baseType"/> <xs:complexType name="whatever"> <xs:sequence> <xs:element ref="baseType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> ? -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|