The 'whiteSpace' element controls the processing of whitespace according to these values:
preserve - all whitespace is preserved.
replace - replaces tabs, line feeds, and carriage returns with spaces.
collapse - removes trailing and leading spaces and replaces multiple whitespace characters with a single space.
Ensuring a type name doesn't have whitespace:
<xs:simpleType name="TypeName"> <xs:restriction base="xs:string"> <xs:whiteSpace value="collapse"/> </xs:restriction> </xs:simpleType>