subject:Attribute ในเอกสาร XSD
syntax:<xsd:attribute name="attributeName" type="typeData" />
position:<xsd:complexType> ... </xsd:complexType>
content:ใช้กำหนด attribute โดยจะมีชนิดข้อมูลตามที่กำหนด
example:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="football">
<xsd:sequence>
<xsd:element name="stadium" type="xsd:NMTOKEN" />
<xsd:element name="manager" type="xsd:NMTOKEN" />
<xsd:element name="footballer" type="xsd:NMTOKEN" />
</xsd:sequence>
<xsd:attribute name="logo" type="xsd:NMTOKEN" />
</xsd:complexType>
</xsd:schema>