Abhinav (archive)
Usenet Archive
- Joined
- Mar 29, 2004
- Messages
- 88
- Reaction score
- 0
Hi,
I have the following document
<!-- This is the root -->
<orders>
<singleItemOrders>
</singleItemOrders>
<multipleItemOrders>
</multipleItemOrders>
</orders>
<orders> can contain 0 or 1 <singleItemOrders> as well as <multipleItemOrders>. However, AT LEAST one of them _must_ be present.
I am not able to construct the schema to vaidate this. using
<all>
<element name="singleItemOrders" minOccurs="0" />
<element name="multipleItemOrders" minOccurs="0" />
</all>
The above is obviously wrong, as iit does not take care of the case when both are absent
Any suggestions would be highly appreciated
TIA
Abhinav
I have the following document
<!-- This is the root -->
<orders>
<singleItemOrders>
</singleItemOrders>
<multipleItemOrders>
</multipleItemOrders>
</orders>
<orders> can contain 0 or 1 <singleItemOrders> as well as <multipleItemOrders>. However, AT LEAST one of them _must_ be present.
I am not able to construct the schema to vaidate this. using
<all>
<element name="singleItemOrders" minOccurs="0" />
<element name="multipleItemOrders" minOccurs="0" />
</all>
The above is obviously wrong, as iit does not take care of the case when both are absent
Any suggestions would be highly appreciated
TIA
Abhinav