Name
XML.ignoreWhite Property — Determines whether to ignore whitespace nodes during XML parsing
Availability
Flash 5 Build 41 or later
Synopsis
XMLdoc.ignoreWhite
Access
Read/write
Description
The
ignoreWhite property stores a Boolean that
dictates whether to discard text nodes containing only whitespace
during the parsing process. The default value is
false (don’t throw away whitespace nodes).
This is a global setting that applies to an entire XML document, not
just a specific node. That is, instances of the
XMLnode class do not support
ignoreWhite.
Example
To cause a single XML document to discard whitespace nodes during parsing, use:
myXML.ignoreWhite = true;
To cause all XML documents to discard whitespace nodes, use:
XML.prototype.ignoreWhite = true;
The ignoreWhite property should be set before any
attempt at parsing XML occurs (typically due to a load(
) or sendAndLoad( ) operation).
See Also
See the examples under the XML Class entry for manual whitespace-stripping code
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access