Conditonal XSD validation based on elements values

  • Thread starter nassim.bouayad.agha
  • Start date
N

nassim.bouayad.agha

Hello,
I am seeking for information about conditional XSD validation based on
elements values,but unfortunatly,I could not find a clear answer.Let's
say that I have three XML elements named GROUP,SUB_GROUP and VALUE.How
to validate the VALUE element depending on GROUP and SUB_GROUP values?
Like if GROUP equals 3 and SUB_GROUP equals 4 then VALUE must be a
string enumeration...
Is it possible to perform that with XSD?I have seen some example using
schemapath (XPath conditions),but that does not seem to be
normalized...?!
Thank you in advance.
Regards.
Nassim
 
J

Joseph J. Kesselman

I am seeking for information about conditional XSD validation based on
elements values

Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.
 
N

nassim.bouayad.agha

Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.

Thank you for yout answer.
 
N

nassim.bouayad.agha

Not supported in XML Schema at this time. Use the xsi:type attribute to
explicitly indicate which type the element is supposed to be interpreted as.

Thank you for your answer.
Regards.
Nassim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top