![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XML Schema Q: Element with either simpleContent or complexContent [Thread Next] Re: XML Schema Q: Element with either simpleContent or complexContentTo: NULL Date: 8/4/2004 12:37:00 AM David Norman wrote:
> How can I create an xml schema where both of the following documents
> are valid?
>
> <theElement>
> <child>some text</child>
> </theElement>
>
> and
>
> <theElement>1234</theElement>
>
> Basically, <theElement> should either contain a single element <child>
> of a specified type or an integer.
This sounds to me like extremely poor data design.
///Peter
--
"The cat in the box is both a wave and a particle"
-- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
