 import flash.xml.XMLDocument;
 import flash.xml.XMLNode;
 
-import mx.collections.IList;
-import mx.core.mx_internal;
 import mx.logging.ILogger;
 import mx.logging.Log;
 import mx.rpc.soap.types.ICustomSOAPType;
+import mx.rpc.wsdl.WSDLEncoding;
 import mx.rpc.wsdl.WSDLMessagePart;
-import mx.rpc.wsdl.WSDLConstants;
-import mx.rpc.wsdl.WSDLEncoding;
 import mx.rpc.wsdl.WSDLOperation;
 import mx.rpc.xml.ContentProxy;
 import mx.rpc.xml.DecodingContext;

     */
    private function resolveReferences(root:XML, cleanupElementsWithIdCache:Boolean=true):void
    {
        if (_referencesResolved) return;
        
        var index:uint = 0;
        if (_elementsWithId == null)
            _elementsWithId = document..*.(attribute("id").length() > 0);
    
        // Note that we must consider all child nodes here, not just elements
        // as we need the accurate index in terms of child XML nodes to replace
        // a node with the referent.

import mx.rpc.xml.SchemaDatatypes;
import mx.rpc.xml.TypeIterator;
import mx.rpc.xml.XMLDecoder;
import mx.utils.StringUtil;
import mx.utils.XMLUtil;
import mx.utils.object_proxy;

use namespace object_proxy;

