 import mx.utils.ObjectProxy;
 import mx.utils.ObjectUtil;
 import mx.collections.IList;
+import flash.system.Capabilities;
 
 [ExcludeClass]
 

    public function XMLEncoder()
    {
        super();
    }

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

    private function escapeXML(value:Object):String
    {
        var str:String = value.toString();
        if (_escapeXMLChars)
        {
            str = str.replace(/&/g, "&amp;").replace(/</g, "&lt;");
        }
        return str;
    }
    
