Just trying to figure out if below scenario can be achieved through XSD schema level validation.
E.g-
<PreferredPlan>
This tag can have Values - Family or Single
if I got the value as "Family", I should be having below xml elements.
<Family>
<tag1></tag1>
<tag2></tag2>
If "Single" value is captured, I should have below tags.
<Single>
<tag3></tag3>
<tag4></tag4>
</Single>