YouTip LogoYouTip

El Group

XML Schema group Element

XML Schema group Element

--

XML Schema Tutorial

XML Schema Tutorial XML Schemas Introduction Why Use XML Schema? How to Use XML Schema XML schema Element XSD Simple Elements XML Schema Attributes XML Schema Facets XML Schema Complex Elements XML Schema Complex Empty Elements XML Schema Complex Types - Only Contains Elements XML Schema Complex Elements - Only Contains Text XML Schema Complex Types - Mixed Content XML Schema Indicators XML Schema Any Element XML Schema AnyAttribute Element XML Schema Element Substitution XML Schema Example XML Schema String Data Types XML Schema Date/Time Data Types XML Schema Numeric Data Types XML Schema Miscellaneous Data Types XML Editor XML Schema Summary XML Schema Reference Manual XML Schema Summary XML Schema import Element

XML Schema group Element


Image 3: XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The group element is used to define a group of elements that can be used in a complex type definition.

Element Information

  • Parent Elements: schema, choice, sequence, complexType, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent)

Syntax

<group
    id=ID
    name=NCName
    ref=QName
    maxOccurs=nonNegativeInteger|unbounded
    minOccurs=nonNegativeInteger
    _any attributes_
>
    (annotation?,(all|choice|sequence)?)
</group>

(The ? symbol indicates that the element can occur zero or one time within the group element.)

Attribute Description
id Optional. Specifies a unique ID for the element.
name Optional. Specifies the name of the group. The name must be an NCName (a name without colons) as defined in the XML Namespaces specification. This attribute is used only when the schema element is the parent element of the group element. In this case, the group is a model group used by the complexType, choice, and sequence elements. The name attribute and the ref attribute cannot appear at the same time.
ref Optional. References the name of another group. The value of ref must be a QName. The ref can include a namespace prefix. The name attribute and the ref attribute cannot appear at the same time.
maxOccurs Optional. Specifies the maximum number of times the group element can occur within the parent element. The value can be any non-negative integer. To specify no limit on the maximum number, use the string "unbounded". The default value is 1.
minOc
← Schema El ImportEl Field β†’