OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] minOccurs maxOccurs doesnt seem to be working correctly in

[ Lists Home | Date Index | Thread Index ]

 
> My XML file has format:
> 
> <parentA>
>  		<C>0</C>
>  		<C>1</C>
>  		<C>2</C>
>  		<C>3</C>
> 		<C>4</C>
>  		<C>5</C>
>  		<C>6</C>
>  		<C>7</C>
> </parentA>
> 
> <B> is just an element ref I put in the <all> tag in <A> to 
> get around the fact that <A> has no sequence but elements 
> which need to occur more than once. <B> describes the 
> occurrences of <C> to be more than 1, in my schema 
> maxOccurs="7" but <B> does not occur in my XML document

No, B is an element declaration. The content model of parentA allows B
elements and nothing else. Your schema doesn't allow C elements to appear as
children of a parentA, only as grandchildren.

Michael Kay
http://www.saxonica.com/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS