A simple scenario: if one field contains "A", then the other field should not contain "B". How to write a XSD schema for it. Example:
<root>
<field_1>A</field_1>
<field_2>B</field_2>
</root>
How to write an XSD schema that imposes restriction on the value of an element, depending on the value of another element?