frafunzele
Programmer
Hi !
Is it possible to validate dependent elements in a XML document by a schema ?
Example:
If element VALUE exist then element NAME is mandatory.
O.K. its possible to implement this with CHOICE, but what happens if CHOICE is not possible or it is too wasteful ?
Example:
If element VALUE is odd then element NAME is mandatory.
Or - more complicate - in this case element NAME has to start with letter D.
The best solution should be a general solution like a script language where you have access to all individual XML elements.
Thx, Frafunzele (using Visual Studio and c#)
Is it possible to validate dependent elements in a XML document by a schema ?
Example:
If element VALUE exist then element NAME is mandatory.
O.K. its possible to implement this with CHOICE, but what happens if CHOICE is not possible or it is too wasteful ?
Example:
If element VALUE is odd then element NAME is mandatory.
Or - more complicate - in this case element NAME has to start with letter D.
The best solution should be a general solution like a script language where you have access to all individual XML elements.
Thx, Frafunzele (using Visual Studio and c#)