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 derfloh 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
Joined
Sep 15, 2010
Messages
3
Location
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.
 
I'm working with version 1.0
 
In that case, the answer would be a no.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top