Easy Tutorial
❮ Schema El Import El Notation ❯

XML Schema attributeGroup Element



Definition and Usage

The attributeGroup element is used to group attribute declarations, allowing these declarations to be merged into complex types as a group.

Element Information

Syntax

(? symbol indicates the element can appear zero or one time, * symbol indicates the element can appear zero or more times.)

Attribute Description
id Optional. Specifies a unique ID for the element.
name Optional. Specifies the name of the attribute group. The name and ref attributes cannot appear together.
ref Optional. Specifies a reference to a specified attribute group. The name and ref attributes cannot appear together.
any attributes Optional. Specifies any other attributes with non-schema namespaces.

Example 1

The example above defines an attribute group named "personattr" and uses it in a complex type named "person".


❮ Schema El Import El Notation ❯