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

Discussion in 'XML' started by leon, Sep 27, 2005.

  1. leon

    leon Guest

    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.
    leon, Sep 27, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    4,954
    Juan T. Llibre
    Nov 10, 2005
  2. Replies:
    2
    Views:
    1,075
    Henry S. Thompson
    Mar 6, 2006
  3. Robert Cohen
    Replies:
    3
    Views:
    270
    Andrew Durstewitz
    Jul 15, 2003
  4. GTN170777
    Replies:
    5
    Views:
    243
    Evertjan.
    Feb 25, 2008
  5. TeknoShock
    Replies:
    1
    Views:
    160
Loading...

Share This Page