I found a workaround for the problem. You can set the xml: space = preserve attribute at the document level. Both Sql 2005 and 2008 servers correspond to the attribute setting and retain spaces. It was a pleasant surprise. Unfortunately, this is not explicitly stated in the MSDN documentation.
source share