codice:
mioxml = new XML();
mioxml.ignoreWhite = true;
mioxml.load("filexml.xml");
mioxml.onLoad = function(success) {
        if (success) {
                // OK è tutto caricato!!
             } else {
                // qui ci fai il preload
             }
        }
}