XML Schema: Data Types

XML schema supports 44 built-in data types such as string, decimal, and integer. These data types help identify the type of data that an element or attribute can contain. For example, an integer data type can restrict an EmpNumber element to contain only numeric data. In contrast, DTDs use PCDATA and CDATA that do not identify the type of data that an element or attribute can contain. For example, PCDATA does not describe whether data is character or number type.

The graphic shows the data types supported by XML schema, which help identify the type of data that an element or attribute can contain.
Click the Next button to continue.