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
- Sequence [1..1]
- xsd:annotation [0..1]
- Choice [0..1]
- xsd:alternative [0..*]
- Choice [0..*]
from group xsd:identityConstraint
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from type xsd:annotated | |
name | [0..1] | xsd:NCName | from group xsd:defRef | |
ref | [0..1] | xsd:QName | from group xsd:defRef | |
type | [0..1] | xsd:QName | from type xsd:element | |
minOccurs | [0..1] | xsd:nonNegativeInteger | Default value is "1". from group xsd:occurs | |
maxOccurs | [0..1] | xsd:allNNI | Default value is "1". from group xsd:occurs | |
default | [0..1] | xsd:string | from type xsd:element | |
fixed | [0..1] | xsd:string | from type xsd:element | |
nillable | [0..1] | xsd:boolean | from type xsd:element | |
block | [0..1] | xsd:blockSet | from type xsd:element | |
form | [0..1] | xsd:formChoice | from type xsd:element | |
targetNamespace | [0..1] | xsd:anyURI | from type xsd:element | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax |
Used in
- Anonymous type of element xsd:all via reference to xsd:allModel
- Group xsd:allModel
- Group xsd:nestedParticle
- Group xsd:particle
- Type xsd:all via reference to xsd:allModel (Element xsd:all)
- Type xsd:explicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
- Type xsd:group via reference to xsd:particle
- Type xsd:simpleExplicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
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>