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