468,249 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

Conditonal XSD validation based on elements values

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
Jun 27 '08 #1
3 3426
na*****************@gmail.com wrote:
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.
Jun 27 '08 #2
On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
nassim.bouayad.a...@gmail.com wrote:
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.
Thank you for yout answer.
Jun 27 '08 #3
On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
nassim.bouayad.a...@gmail.com wrote:
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.
Thank you for your answer.
Regards.
Nassim.
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by EviL KerneL | last post: by
4 posts views Thread by adam.lock | last post: by
16 posts views Thread by Hosh | last post: by
9 posts views Thread by julie.siebel | last post: by
11 posts views Thread by Rik | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.