Table of Contents

XML.ignoreWhite Property Flash 5.0.41.0

determines whether to ignore whitespace nodes during XML parsing read/write
xmlDoc.ignoreWhite

Description

The Boolean ignoreWhite property 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 an instance-wide setting that applies to an entire XML document, not just to a specific node. Therefore, the specified xmlDoc must be the top-level node in an XML object hierarchy (i.e., an instance of the XML class, not the XMLnode class).

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 during parsing, use:

XML.prototype.ignoreWhite = true;

The ignoreWhite property must be set before XML parsing occurs (typically due to a load( ) or sendAndLoad( ) operation).

See Also

The manual whitespace-stripping code examples under the XML class entry


Table of Contents