xml:space

Space

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

Remarks

Used to keep explicit formatting, for example, in computer code, ASCII art, or poetry.

Used on Elements: <glyph-data>, <code>, <preformat>

ValueMeaning
preserveWhite space should be preserved. (This value is fixed and cannot be changed in a document.).
Restriction@xml:space has a fixed value which may not be changed in the document.

Example

...
<code   
  code-type="user interface control" 
  language="C++"
  language-version="11"
  xml:space="preserve" 
  orientation="portrait"
  position="anchor">
#include &lt;conio.h>
#include&lt;win_mous.cpp>
// Needed for mouse &amp; win functions#define
...
</code>
...