Schema Complex Text
## Text-Only Complex Elements
This type contains only simple content (text and attributes), so we need to add a `simpleContent` element to this content. When using simple content, we must define an extension or restriction within the `simpleContent` element, like this:
....
....
Or:
....
....
**Note:** Use the `extension` or `restriction` element to extend or restrict the element's base simple type.
Here is an example of an XML element, "shoesize", which contains only text:
35
The following example declares a complex type whose content is defined as an integer value, and the "shoesize" element contains an attribute named "country":
We can also assign a name to the `complexType` element and let the "shoesize" element's `type`
YouTip