So the element:
<foo bar="bar" baz="baz"/>
is described using:
<xs:complexType name="foo">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="bar" type="xs:string"/>
<xs:attribute name="baz" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
nice!
2 comments:
What's wrong with the following declaration?
<xs:element name="foo">
<xs:complexType mixed="true">
<xs:attribute name="bar" type="xs:string"/>
<xs:attribute name="baz" type="xs:string"/>
</xs:complexType>
</xs:element>
Up to now, I've thought this was the canonical way...
Post a Comment