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:localElement
Properties: Local, Qualified
Content
- Sequence [1..1]
- xsd:annotation [0..1]
- Choice [0..1]
- Choice [0..*]
from type xsd:annotatedfrom group xsd:elementModelfrom group xsd:identityConstraint
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax | from type xsd:openAttrs | |
id | [0..1] | xsd:ID | from type xsd:annotated | |
name | [0..1] | xsd:NCName | ||
ref | [0..1] | xsd:QName | ||
type | [0..1] | xsd:QName | ||
minOccurs | [0..1] | xsd:nonNegativeInteger | minimum number of occurrences | Default value is "1". from group xsd:occurs |
maxOccurs | [0..1] | Anonymous | maximum number of occurrences | Default value is "1". from group xsd:occurs |
default | [0..1] | xsd:string | ||
fixed | [0..1] | xsd:string | ||
nillable | [0..1] | xsd:boolean | Default value is "false". | |
block | [0..1] | xsd:blockSet | ||
form | [0..1] | xsd:formChoice |
Used in
- Group xsd:nestedParticle
- Type xsd:explicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
- Type xsd:simpleExplicitGroup via reference to xsd:nestedParticle (Elements xsd:choice, xsd:sequence)
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>