Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


conditional expression

From: Debora Vanni <debora.vanni@------.--->
To: xmlschema-dev@--.---
Date: 7/26/2006 5:09:00 PM
Hi all!
I have this problem on validation with xsd.
The xml file has a particular tag: when his value is "TCP" the xml file
must have other two tags, when his value is "OUR" there should be no
other tags.
So the xml should be either

<special-tag  type="string" value="TCP"/>
<host type="string" value="192.168.72.26"/>	
<port type="int" value="10202"/>

or
<special-tag  type="string" value="OUR"/>

Is there some way to do this with xsd?
Thank you very much for your help!
Debora




From george@o... Wed Jul 26 13:38:54 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent