Complete XML Schema Reference
The group element is used to define a group of elements to be used in complex type definitions.
(The ? sign declares that the element can occur zero or one time inside the group element)
| Attribute | Description |
|---|---|
| id | Optional. Specifies a unique ID for the element |
| name | Optional. Specifies a name for the group. This attribute is used only when the schema element is the parent of this group element. Name and ref attributes cannot both be present |
| ref | Optional. Refers to the name of another group. Name and ref attributes cannot both be present |
| maxOccurs | Optional. Specifies the maximum number of times the group element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1 |
| minOccurs | Optional. Specifies the minimum number of times the group element can occur in the parent element. The value can be any number >= 0. Default value is 1 |
| any attributes | Optional. Specifies any other attributes with non-schema namespace |
The following example defines a group containing a sequence of four elements and uses the group element in a complex type definition:
Complete XML Schema Reference
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.