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: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 06 Dec 2000 21:05:38 +0000
To: Michael.Burns@sas.com
Cc: xmlschema-dev@w3.org
Message-ID: <f5bu28h5kgt.fsf@cogsci.ed.ac.uk>
Michael Burns <Michael.Burns@sas.com> writes:

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

<xs:element>
 <xs:complexType mixed="true">
  <xs:any minOccurs="0" maxOccurs="0"/>
  <xs:anyAttribute/>
</xs:element>

Customise to taste.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Wednesday, 6 December 2000 16:05:44 GMT

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