An XML parser usually converts all white space on either side of a tag (all carriage returns, tabs, line feeds, and spacebar spaces) to a single space, because elaborate combinations of whitespace characters aren't supposed to play a role in XML documents--if they did, cross-platform compatibility would suffer a great deal. See the introduction to Part 1 of this series (http://www.xml.com/pub/a/2001/11/07/whitespace.html).