Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

maxoccurs/minoccurs where to specify?

$
0
0

Hi we have xsd as follows

<xsd:elementname="books"><xsd:complexType><xsd:sequenceminOccurs="1"maxOccurs="unbounded"><xsd:elementref="book1"minOccurs="1"maxOccurs="unbounded"/>

<xsd:elementref="book2"minOccurs="1"maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType></xsd:element>

Will this be complied as

<books><book1/><book2><book1/><book2/><book1/><book2/><book1/><book2/>..</books>

OR

<books><book1/><book2></books>

<books><book1/><book2></books>

pl specify the correct result & why?


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>