Need help using all, group, choice, and sequence

Questions 1 and 2 are almost related.

Question 1:
                    /--GrpA--min=1, max=unbounded
      RootElement------GrpB---(optional)
                    \--Element1--(optional, max=unbounded)


              /-----GrpAElem1(min=0, max=unbounded)
      GrpA----------GrpAElem2 (min=0, max=unbounded)
              \-----GrpAElem3 (min=0, max=unbounded)


      Is it possible to specify,

      a) that GrpA, GrpB, and Element1 can occur in any
         order within the RootElement.

      b) that the elements inside GrpA, i.e. GrpAElem1,
         GrpAElem2, and GrpAElem3 can occur in any order.



Question 2:


               /-----Child1  (optional) max=unbounded
      Parent----------Child2  (optional)  max=unbounded
              \ -----Child3  (optional)  max= unbounded

      But Child1 or Child2 or both Child1 and Child2,
      should be present.  Also, I would like to see if I
      can specify without restricting the sequence of
      occurance for Child1 and Child2(Child1 or Child2
      can be specified first).

      I tried specifying the above using the following



                                   /--Child1
      Parent---seq---choice(min=1)----Child2
                    \              \--Child1Child2Group
                     \--elementA-(optional, max=unbounded)

                                 /---Child1
      Child1Child2Group ---all-------Child2

      Xerces-J gave me the following error when trying to
      validate:
      cos-all-limited.1.2:  A group whose content
      is "all" must only appear as the content type of a
      complex type defintion.  Saw group in "choice".


Thanks in advance for any suggestions.

Rekha





_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Received on Thursday, 1 November 2001 12:04:58 UTC