 
     private var _strictNillability:Boolean = false;
     private var _xmlSpecialCharsFilter:Function = escapeXML;
+    private var _escapeXMLChars:Boolean = true;
 
 }
 

import mx.utils.ObjectProxy;
import mx.utils.ObjectUtil;
import mx.collections.IList;

[ExcludeClass]


    public function XMLEncoder()
    {
        super();
        
        // Depending on the player type/version, xml characters in strings
        // need or need not be escaped. AIR 1.5 ('Desktop' version 10) escapes
        // these characters by default. For all other versions Flex needs to
        // do it. The version test to determine this behavior is done here, so
        // that it's not repeated every time xml content is encoded. This is a
        // fix for bug SDK-18326.
        if (flash.system.Capabilities.playerType == "Desktop")
        {
            var version:String = flash.system.Capabilities.version.split(' ')[1];
            var majorVersion:Number = Number(version.split(',')[0]);
            if (majorVersion >= 10)
            {
                _escapeXMLChars = false;
            }
        }
        
    }

    //--------------------------------------------------------------------------
