Altova Mailing List Archives
>comp.text.xml Archive Home
>Thread Next - Re: In Schema, how to say "If one element exist, another element must exist"?
In Schema, how to say "If one element exist, another element must exist"?
Date: 9/16/2003 2:17:00 PM
Hello All, I have the following schema: ... <xs:element name="data_type_id" type="xs:unsignedShort" /> <xs:element name="data_value" type="xs:anyType" /> ... What I want to do is to specify that "If 'data_value' element exists, 'data_type_id' element MUST exist". How do I do that? Thanks very much