I need some help regarding XML Schema. Consider the following XML, I need
write a schema to validate this XML, the trick is it requires at least 3
"ProductQuantity" groups, and their "Code" must at least has one
"Requested", "Shipped", and "Remaining", and also can be in any order. So
if a XML contains one "Requested" ProductQuantity, two "Shipped"
ProductQuantity, and no "Remaning" ProductQuantity, then consider its a
invalid document. Can some one help me to write this kind of schema.
<ProductInformation>
<someElements1/>
<ProductQuantity>
<Code>Requested</Code>
<Quantity>10</Quantity>
</ProductQuantity>
<ProductQuantity>
<Code>Shipped</Code>
<Quantity>5</Quantity>
</ProductQuantity>
<ProductQuantity>
<Code>Remaning</Code>
<Quantity>5</Quantity>
</ProductQuantity>
<someElements2/>
</ProductInformation>
Thanks in advance,
Benson
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]