Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML Schema simpleContent Element

XML Schema simpleContent Element


XML Schema Reference Manual 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

Syntax

id=ID

any attributes

(annotation?,(restriction|extension))

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

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

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

35

The following example declares a complex type "shoesize" whose content is defined as the integer data type, with a country attribute:

  xs:complexType

    xs:simpleContent

      

        

      

    

  


XML Schema Reference Manual Complete XML Schema Reference Manual