attrib.xsd 509 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

 <xsd:element name="foo" type="fooT" />

 <xsd:complexType name="fooT">
  <xsd:sequence>
   <xsd:element name="bar" type="xsd:string"/>
  </xsd:sequence>
  <xsd:attribute name="id" use="optional" fixed="12" type="xsd:integer"/>
  <xsd:attribute name="id2" use="optional" default="13" type="xsd:integer"/>
  <xsd:attribute name="foo" use="prohibited"/>
  <xsd:attribute name="bar" use="required" type="xsd:string"/>
 </xsd:complexType>

</xsd:schema>