Schema Central > XML Schema 1.1 > XMLSchema.xsd > xsd:attribute
Advanced search
Need Schema Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:attribute

See http://www.w3.org/TR/xmlschema11-1/#element-attribute.

Element information

Namespace: http://www.w3.org/2001/XMLSchema

Schema document: XMLSchema.xsd

Other elements with the same name: xsd:attribute

Type: xsd:topLevelAttribute

Properties: Global, Qualified, ID: attribute

Content

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom type xsd:annotated
type [0..1]xsd:QNamefrom type xsd:attribute
default [0..1]xsd:stringfrom type xsd:attribute
fixed [0..1]xsd:stringfrom type xsd:attribute
name [1..1]xsd:NCName
inheritable [0..1]xsd:boolean
Any attribute[0..*]Namespace: ##other, Process Contents: lax

Used in

Sample instance

<xsd:attribute name="NCName">
   <xsd:simpleType>
      <xsd:restriction base="QName">
         <xsd:simpleType>...
         </xsd:simpleType>
         <xsd:minExclusive value="any text content">...
         </xsd:minExclusive>
      </xsd:restriction>
   </xsd:simpleType>
</xsd:attribute>