W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

Re: how to define an element which can contain any attributes or elements

From: Michael Anderson <michael@research.canon.com.au>
Date: Thu, 07 Dec 2000 08:05:46 +1100
Message-ID: <3A2EAA2A.4B42D8E8@research.canon.com.au>
To: Michael.Burns@sas.com
Cc: xmlschema-dev@w3.org
Michael Burns wrote:

> I want to define an element called "Properties" so that it can have any attributes
> and any elements.

Someone correct me if I'm wrong, but what about:

<element name="Properties">
    <complexType>
        <sequence>
            <any minOccurs="0" maxOccurs="unbounded" />
        </sequence>
        <anyAttribute />
    </complexType>
</element>

mick.
Received on Wednesday, 6 December 2000 16:06:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT