XML Schema extension Element
Complete XML Schema Reference Manual
Definition and Usage
The extension element extends elements of simpleType or complexType.
Element Information
- Parent elements: simpleContent, complexContent
Syntax
id=ID base=QName any attributes (annotation?,((group|all|choice|sequence)?, ((attribute|attributeGroup)*,anyAttribute?))) (The ? symbol declares that within the extension element, the element can appear only zero or one time; the * symbol declares that the element can appear zero or more times.) The following example extends an existing simpleType by adding an attribute: The following example extends an existing complexType element by adding three elements:
property
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
Example 2
Complete XML Schema Reference Manual