XML Schema extension
Element
Definition and Usage
The extension
element extends elements of simpleType
or complexType
.
Element Information
- Parent Elements:
simpleContent
,complexContent
Syntax
(? symbol declares that the element can appear zero or one time within the extension
element, * symbol declares that the element can appear zero or multiple times.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element. |
base | Required. Specifies the name of a built-in data type, simpleType , or complexType element. |
xml:lang | Optional. Specifies the language used in the content. |
Example 1
The following example extends an existing simpleType
by adding attributes:
Example 2
The following example extends an existing complexType
element by adding three elements: