Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSD schema for optional child elements XSD schema for optional child elementsTo: NULL Date: 7/2/2008 4:56:00 PM Hi, I'm trying to figure out how to validate an element in XML with XML Schema that can either have no content or a couple of child elements. Example: <foo id="123"> <bar str="abc"/> </foo> <foo id="321"/> I can get XSD to validate one or the other but not accept both. Any ideas? (I have the minOccurs="0" on the <bar> element definition.) Cheers, aled. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
