Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Purpose of >Thread Next - Re: Choice of sub-element or character-data in an element Choice of sub-element or character-data in an elementTo: xmlschema-dev@--.--- Date: 6/21/2008 9:44:00 AM
How is it possible to define an XSD to allow an element to
either contain custom sub-elements, or a fixed string?
For example, I would like to be able to do the following:
<ElementA>
<ElementB>
<ElementC>Some value</ElementC>
<ElementD>Another value</ElementD>
</ElementB>
</ElementA>
or
<ElementA>
<ElementB>Any</ElementB>
</ElementA>
I'm not sure how to use <xsd:choice> to define this? Thanks
for any suggestions.
Arshad Noor
StrongAuth, Inc.
From mike@s... Mon Jun 23 09:06:41 2008
Received: from [128.30.52.63] ( | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
