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

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 UTC