You can limit the number of digits to the right or left of the decimal point of a number.
xsd:precision facet must be a positive number (1, 2, 3, or higher).
xsd:precision may not be equal to zero.
xsd:precision may not be less than the xsd:scale value.
xsd:scale facet must be a non-negative integer (0, 1, 2, or higher).
Both the xsd:precision and xsd:scale facets specify the maximum values allowed.
The number is still considered valid if fewer digits are present.
You may set a xsd:precision and xsd:scale for any numerical type, but not for any string, date, or other types.
File: Schema.xsd
targetNamespace="http://www.rntsoft.com" xmlns="http://www.rntsoft.com"
elementFormDefault="qualified">
File: Data.xml
34.5