element with multiple definitions

  2 questions :
    1.
  Is it possible to specify that for an element, either all or none of
 its attributes must be specified.
  Specifying only some of them is not allowed.

 2.
  How can i specify in an xml schema so
  an element with name 'arg' either consists of an attribute att
  and contains a simple element name,
  ex:

  <arg att="aaa">
    <name>daniel<name>
  </arg>

  or
  consists of an attribute differentAtt and a simple element
  age:

  <arg differentAtt="bbb">
    <age>26</age>
  </arg>
  .

  I don't want having an arg element with both attributes or both
  name and age element to be legal.


 Daniel

Received on Friday, 25 July 2003 08:51:49 UTC