W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Understanding anyType

From: Horti, Andras <andras.horti@joanneum.at>
Date: Mon, 13 Jan 2003 09:45:35 +0100
Message-ID: <A6C43780FFDFFF44803C1E5DB704CE22528B22@iis-mail.joanneum.ac.at>
To: xmlschema-dev@w3.org

Hi All,

I have an understanding problem with anyType. If I have the following type:
  <xsd:complexType name="General">
    <xsd:complexContent>
      <xsd:restriction base="xsd:anyType" />
    </xsd:complexContent>
  </xsd:complexType>

and define an element with it:

  <xsd:element name="SomeElement" type="General"/>

Is it a general type to assign anything to it using xsi:type or it is always
an empty element ?

Best Regards
Andras Horti
Received on Monday, 13 January 2003 03:45:45 GMT

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