When sending data from sender to the receiver, it is
essential that both parts have the same "expectations" about the
content.
With XML Schema, the sender can describe the data in
a way that the receiver will understand.
A date like: "04-11-2004" will, in some countries, be
interpreted as type 4.November and in other countries as type 11.March.
However, an XML element with the data type like this:
<date type="date">2004-04-11</date>
ensures a mutual understanding of the content, because the
XML data type "date" require the format "YYYY-MM-DD"
|