December 2002
Intermediate to advanced
576 pages
32h
English
xml:space
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"
Read now
Unlock full access