Element Declarations: Simple Type | ||
A simple type element cannot contain child elements or attributes. The simple type element declaration is: <xs:element name="element_name" type="data_type" where:
For example, in the following code snippet, firstname is the name of an element and xs:string indicates that the string data type is specified for the firstname element. Therefore, the firstname element can contain only character strings. <xs:element name="firstname" type="xs:string" /> Similarly, the lastname element can be declared as: <xs:element name="lastname" type="xs:string" />
|
|
|
Click the Next button to continue. |