Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schema

Status
Not open for further replies.

joheras

Programmer
Sep 15, 2010
3
ES
Dear all,

I have the following XML Schema definition:

<xs:element name="object">
<xs:complexType>
<xs:sequence>
<xs:element name="m" type="xs:int"/>
<xs:element name="n" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>


I would like to know if it is possible to impose that the value of the element m must be higher than the value of the element n in the xml-schema definition.

Thank you in advance
 
What version of w3c xml schema are you using? With schema version 1.0 much more broadly supported, no.

As a further note so that you know and be prepared what would be in store: with version 1.1 it is possible but the supported is not wide-spread at all and if it is, it usually is still heavily experimental/beta.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top