Extra spaces disappear when importing text/xml

When I import the following XML and put the contents in a dynamic text field the beginning spaces disappear. Any idea why?

<text>                                something</text>