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
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|