Nothing wrong with the second one. It might have been defined as

<xs:complexType name="client">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="1" />
<xs:element name="child" type="child" minOccurs="0" maxOccurs="unbounded"/>
<xs:sequence>
</xs:complexType>

Joep Beckeringh


Op 09-03-10 19:55, hr@xxxxxxxxxxxx schreef:
You express the XML snippits wrong, it should be

<client>
<name>bill</name>
<children>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</children>
</client>

<client>
<name>bill</name>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</client>

The first structure is weel structured, the second isn't.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.