XSDWhiteSpace
Perform a XML string manipulation before serialization or deserialization depending on the following possible values:
- preserve: the XML string is not modified.
- replace: the XML string is modified by replacing each \n, \t, \r by a single space.
- collapse: the XML string is modified by replacing each \n, \t, \r by a single space, then each sequence of several spaces are replaced by one single space. Leading and trailing spaces are removed too.
Note:
- The whiteSpace facet is always performed before any other facet constraints, or serialization or deserialization process.
- For any BDL variable excepted STRING, CHAR and VARCHAR, only collapse is allowed.
Example
DEFINE myStr STRING ATTRIBUTES(XSDString, XSDWhiteSpace="replace",
XMLName="MyString")
DEFINE myDec DECIMAL(3,1) ATTRIBUTES(XSDDecimal,
XSDWhiteSpace="collapse", XMLName="MyDecimal")