XML.ignoreWhite Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
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

     
       About Safari   |   Terms of Service   |   Privacy Policy   |   Contact Us   |   Help   |   Submit a Problem
    Copyright 2002 O'Reilly & Associates, Inc. All rights reserved.
    1005 Gravenstein Highway North
    Sebastopol, CA 95472
     


    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net