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

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:element

Element information

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

Schema document: XMLSchema.xsd

Other elements with the same name: xsd:element

Type: xsd:localElement

Properties: Local, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom type xsd:annotated
name [0..1]xsd:NCNamefrom group xsd:defRef
ref [0..1]xsd:QNamefrom group xsd:defRef
type [0..1]xsd:QNamefrom type xsd:element
minOccurs [0..1]xsd:nonNegativeIntegerDefault value is "1". from group xsd:occurs
maxOccurs [0..1]xsd:allNNIDefault value is "1". from group xsd:occurs
default [0..1]xsd:stringfrom type xsd:element
fixed [0..1]xsd:stringfrom type xsd:element
nillable [0..1]xsd:booleanfrom type xsd:element
block [0..1]xsd:blockSetfrom type xsd:element
form [0..1]xsd:formChoicefrom type xsd:element
targetNamespace [0..1]xsd:anyURIfrom type xsd:element
Any attribute[0..*]Namespace: ##other, Process Contents: lax

Used in

Sample instance

<xsd:element>
   <xsd:simpleType>
      <xsd:restriction base="QName">
         <xsd:simpleType>...
         </xsd:simpleType>
         <xsd:minExclusive value="any text content">...
         </xsd:minExclusive>
      </xsd:restriction>
   </xsd:simpleType>
   <xsd:alternative>
      <xsd:simpleType>
         <xsd:restriction base="QName">...
         </xsd:restriction>
      </xsd:simpleType>
   </xsd:alternative>
   <xsd:unique>
      <xsd:selector xpath="token">
      </xsd:selector>
      <xsd:field xpath="token">
      </xsd:field>
   </xsd:unique>
</xsd:element>