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
Get ActionScript: The Definitive Guide 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.