XML Schema simpleContent Element
Complete XML Schema Reference Manual
Definition and Usage
The simpleContent element contains extensions or restrictions of a complexType element (whose content is character data or a simpleType element) and does not contain any elements.
Element Information
- Parent elements: complexType
Syntax
id=ID any attributes (annotation?,(restriction|extension)) (The ? symbol declares that within the simpleContent element, the element can appear zero or one time.) This is an XML element that contains only text ( The following example declares a complex type "shoesize" whose content is defined as the integer data type, with a country attribute:
property
Description
id
Optional. Specifies a unique ID for the element.
any attributes
Optional. Specifies any other attributes with a non-schema namespace.
Example 1
Complete XML Schema Reference Manual