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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schema questions

Status
Not open for further replies.

MrNoReaction

Programmer
Joined
Sep 29, 2006
Messages
2
Location
CA
Is it possible to check that the value of an element is greater or equal to the value of another ? For example :

<client>
<creation_date>2006-09-20</creation_date>
<last_modification_date>2006-09-19</last_modification_date>
</client>

With my XML Schema, is there a way to make sure that "last_modification_date" is always greater or equal to the "creation_date" ?


Also, is there a way to set the default value of an element to the value of a required one ? Like having the default value of "last_modification_date" set to "creation_date" ?


Sorry if these questions don't make sense, I'm new to XML and can't find answers to these questions anywere ...
 
You may find a question I asked a while back useful:
thread426-1155243

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Thanks ... when I saw that nobody was answering, I kinda knew that it wasn't possible
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top