WhiteSpaceRule

WhiteSpace constrains the value space of types derived from string such that the various behaviors specified in Attribute Value Normalization in XML are realized. The value of WhiteSpace must be one of {preserve, replace, collapse}.

The definition and documentation of whiteSpace is according to the section "Constraining Facets" of the XML Schema documentation.

Enumeration: 
Value: 
Preserve
Description: 
No normalization is done, the value is not changed (this is the behavior required by XML for element content).
Value: 
Replace
Description: 
All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space).
Value: 
Collapse
Description: 
After the processing implied by replace, contiguous sequences of #x20's are collapsed to a single #x20, and any #x20 at the start or end of the string is then removed.
Package: 
Enumerations
1