This is the scenario/problem I am trying to solve - Within a sequence of elements in my XSD I have an element- say XYZ which can be nillable if the one of the preceding element - say ABC - has a certain value - say "Alpha". If that preceding element - ABC has a different value then the element XYZ must be not nillable.
What is the best approach to solve this problem?
I am using C# & SQL Server.
Is it possible to define new attributes within a XSD?