xml:space Space

When printing or displaying the associated element, all white space (such as tabs, ordinary spaces, and line breaks) should be preserved.

Usage/Remarks

Used to keep explicit formatting, for example, in computer code, ASCII art, or poetry.
FIXED (not settable) on elements: <code>, <glyph-data>, <preformat>
Value Meaning
preserve White space should be preserved. (This value is fixed and cannot be changed in a document.)
Restriction This attribute has a fixed value which may not be changed in the XML document.
OPTIONAL (defaults to preserve) on element: <inline-code>
Value Meaning
default Processing system (rather than the XML document) determines whether space is preserved or not.
preserve White space should be preserved.
Default value preserve