Microsoft XML SDK 2.6 - XML Developer's Guide

Handling White Space

Unlike HTML, which, in most cases, ignores white space (spaces, tabs, new lines, and so on), XML is for data, and thus has the capability through the reserved xml:space attribute to retain all white space. However, because handling white space in XML is not that simple, the following topics provide additional information and examples: