There are two types of data types in XML schema.
* simpleType
* complexType
simpleType : The simpleType allows you to have text-based elements. It contains less attributes, child elements, and cannot be left empty.
complexType : The complexType allows you to hold multiple attributes and elements. It can contain additional sub elements and can be left empty.