Include both the elements within a sequence like the following:
=========
<xs:sequence minOccurs="0" maxOccurs="1">
<xs:element name="data_type_id" type="xs:unsignedShort" />
<xs:element name="data_value" type="xs:anyType" />
</xs:sequence>
==========
Regards.
"Y.S." <st************@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
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