That's a problem in your application design. The XML spec says that whitespace inside attribute values will be normalized.
If you need to preserve the whitespace, use element content (with child elements to divide it up or name it, if necessary) rather than attributes.
