.text() and IE 8...

.text() and IE 8...

Hi Folks

Looking for a little bit of help - relative noob to javascript / jquery so don't shoot....

I have the following XML data:

-----
<?xml version="1.0" encoding="UTF-8"?>
<pricing>
    <package>
        <name description="Package Name">Lite Package</name>
        <name2 description="Package Name">Lite Package</name2>
    </package>
</pricing>
-----

..and the following code:

-----
    $(document).ready(function(){
       
            var xml = $.ajax({
            type: "GET",
            url: "xml/pricing-test.xml",
             async: false,
             cache: false,
             success: function(a, b, c){ alert("Load success" + a +" : "+ b +" : "+ c); }
             error: function(a, b, c){ alert("Load failed: " + a +" : "+ b +" : "+ c); }

        }).responseText;

        function getPackage(xml){
       
            var results = $(xml).find("name").text();
            alert("Results: "+ results);
           
        };
       
        getPackage(xml);
       
    });
-----

Works perfectly in Firefox / Chrome / Opera but fails in IE8 / IE6 (haven't tested IE7), can anyone point me in the right direction?

The appears to retrieving the data in IE but 'text()' doesn't seem to get a value, I have tried the IE developer tools but that is more complex than trying to learn javascript, guess thats another issue though!

Many thanks in advance!
Rob