I was trying to validate this XML file ... where if
is \"Y\" then
must appear
if
It's a known fact that this is a handycap of XML schema. But I would appreciate your approach of trying the
tag. It could be successful if your conditions were something like this:
is required and appears first then
isn't required (and appears as second tag)
is required and appears first then
isn't required (and appears as second)The code is: