Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: emptiable content in particle inheritance [Thread Next] Re: emptiable content in particle inheritanceTo: xmlschema-dev@--.--- Date: 2/3/2009 11:56:00 AM On Monday 02 February 2009 21:47:25 Pete Cordell wrote: Hej, > Isn't there something about "if an element has a maxOccurs = 0, then it is > nothing at all", i.e. it does not exist. If so, the second schema becomes: > > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <xsd:element name="doc" type="foo"/> > <xsd:complexType name="foo"> > <xsd:choice> > <xsd:element name="e2"/> > </xsd:choice> > </xsd:complexType> > </xsd:schema> > > which requires an e2 child does it not? Ok, that was the rule I missed :) Thanks to everyone who gave some insight on that topic! Ciao, Tobias From davidfeustel@c... Tue Feb 03 10:48:17 2009 Received: f | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
