Hi Dennis,

It was exactly as you said it. Changed the schema
in the way you proposed and my code now works 
as planned.


Thank you so much

tom

Dennis Sosnoski <[EMAIL PROTECTED]> schrieb am 14.05.2007 09:10:59:

> No ambiguity here, but also no repetitions on the <track-info>. It 
> sounds like you're missing a minOccurs="0" and maxOccurs="unbounded" on 
> the inner sequence element in order to make this schema fragment match 
> your description, which I suspect will also give you a method to get all 

> <track-info>s. So this schema:
> 
>   <xs:element name="crosspoints">
>    <xs:complexType>
>      <xs:sequence>
>        <xs:element ref="crosspoint" />
>        <xs:sequence minOccurs="0" maxOccurs="unbounded">
>          <xs:element ref="track-info" />
>          <xs:element ref="crosspoint" />
>        </xs:sequence>
>      </xs:sequence>
>    </xs:complexType>
>  </xs:element>
> 
> would define the n <crosspoint> n-1 <track-info> structure you 
> described. There's still no ambiguity - the first <crosspoint> always 
> matches the element definition outside the inner sequence, then each 
> pair of <track-info>+<crosspoint> elements matches one instance of the 
> inner sequence.
> 
>   - Dennis
> 
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117




This email and any attachments may contain confidential or privileged 
information. Please note that unauthorized copying, disclosure or 
distribution of the material in this email is not permitted.

GfK Data Services GmbH, Nuremberg, Germany, commercial register Nuremberg 
HRB 11415; Managing Director: Rainer Ostermeyer
 

Reply via email to