Easy Tutorial
❮ Schema Editor Schema Tutorial ❯

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 question mark 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 (<shoesize>) that contains only text:

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

❮ Schema Editor Schema Tutorial ❯