Salve il problema è questo, di solito leggo un file xml oppure una pagina dinamica che mi restiruisce un xml, ma se avessi una variabile che contiene tutto il mio xml, come faccio a leggerlo come se fosse un file xml??

Codice PHP:
arrXML = new XML ();
arrXML.ignoreWhite true;
arrXML.onLoad = function (success:Boolean) {
    if (
success) {
        
rootNode loadXML.loadXMLDat(successarrXML);    //classe che parserizza l'xml
        
indiceMaxFrame rootNode.childNodes.length;
        
        var 
strId:String rootNode.attributes.id;
        var 
strTitle:String rootNode.attributes.title;
        var 
strDate:String rootNode.attributes.date;
        var 
strAuth:String rootNode.attributes.auth;
        
        
        
//chiamo funzione
    
} else {
        var 
Err:clsErrorMessage = new clsErrorMessage("Il file non è stato trovato");
    }
};

arrXML.Load("nomeFile.xml"); 
Questo è il codice che uso per leggere un file xml...