Easy Tutorial
❮ Schema Elements Ref El Simpletype ❯

XML Schema simpleContent Element



Definition and Usage

The simpleContent element contains extensions or restrictions on a complexType element (which has character data or a simpleType element as its content) and does not include any elements.

Element Information

Syntax

(The ? symbol indicates that the element can appear zero or one time within the simpleContent element.)

Attribute Description
id Optional. Specifies a unique ID for the element.
any attributes Optional. Specifies any other attributes with non-schema namespaces.

Example 1

This is an XML element that contains only text (<shoesize>):

The following example declares a complex type "shoesize" whose content is defined as integer data type and includes a country attribute:


❮ Schema Elements Ref El Simpletype ❯