Schema Central > XML Schema 1.0 > 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, xsd:element

Type: xsd:narrowMaxMin

Properties: Local, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
id [0..1]xsd:IDfrom type xsd:annotated
name [0..1]xsd:NCNamefrom type xsd:localElement
ref [0..1]xsd:QNamefrom type xsd:localElement
type [0..1]xsd:QNamefrom type xsd:localElement
default [0..1]xsd:stringfrom type xsd:localElement
fixed [0..1]xsd:stringfrom type xsd:localElement
nillable [0..1]xsd:booleanDefault value is "false". from type xsd:localElement
block [0..1]xsd:blockSetfrom type xsd:localElement
form [0..1]xsd:formChoicefrom type xsd:localElement
minOccurs [0..1]AnonymousDefault value is "1".
maxOccurs [0..1]AnonymousDefault value is "1".
Any attribute[0..*]Namespace: ##other, Process Contents: lax

Used in

Sample instance

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

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to pwalmsley@datypic.com