Re: XML: How to require either or both of two child elements, but prevent both missing?
23 Feb
2003
23 Feb
'03
07:58
jrc> How about changing the model to 'choice' and requiring one but allowing two jrc> (or multiple) occurrences of optional elements? jrc> something like this maybe?
jrc> <xs:choice minOccurs="1" maxOccurs="2"> jrc> <xs:element name="A" minOccurs="0" maxOccurs="1"/> jrc> <xs:element name="B" minOccurs="0" maxOccurs="1"/> jrc> </xs:choice>
Dosn't it alllow the choice whithout A nor B for their minOccurs=0?
Substition group would do.
Cheers, James
7958
Age (days ago)
7958
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nozomi Ytow