Name
xml:space
Synopsis
The &xml:space;
attribute indicates whether
any whitespace inside the element is significant and should not be
altered by the XML processor. The attribute can take one of two
enumerated values:
-
preserve
The XML application preserves all whitespace (newlines, spaces, and tabs) present within the element.
-
default
The XML processor uses its default processing rules when deciding to preserve or discard the whitespace inside the element.
You should set &xml:space;
to
preserve
only if you want an element to behave
like the HTML <pre>
element, such as when it
documents source code.
xml:space="default|preserve"
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.