ea******@gmail.com wrote:
...
<object id="10">door</object>
...
I try to write this in clipse XSD editor
<element name="object" type="string">
<attribute name="id" type="int"></attribute>
</element>
If an element has an attribute then in terms of the W3C XSD schema
language it has a complex type so you need e.g.
<xs:element name="object">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="id" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
--
Martin Honnen
http://JavaScript.FAQTs.com/