Re: Attribute groups

Hi Corey,

> Here's another question for you, then- is it possible, using
> abstract types and/or elements, to create a "polymorphic" element?

If by that you mean an element that can have any content, then yes:

<xs:element name="foo" type="xs:anyType" />

This declares the foo element with 'anyType' as the content. It can
hold elements or text of any kind, mixed together.

By default, the same goes for any element whose type is a type from
which other types are derived. If a type can have other types derived
from it, then elements of that type can have their content changed to
those other types.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Friday, 15 March 2002 19:41:44 UTC