restrict the value of one child based on value from another child

L

leon

Hi all,

a question for you:

suppose i have an element of complex type which contains two child elements (both of child elements
are simple types, say an integer for example's sake)

suppose i then want to restrict the value of one child element to be no greater than the other child
element...

<parent>
<childOne>57</childOne>
<childTwo>7</childTwo>
</parent>

From the aforementioned example, I want to make sure that whatever the value in childOne - childTwo
will NOT have the value greater (e.g. in this case no greater than 57)

kind regards,
Leon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top