[jQuery] [selectors] XML IE6 problem

[jQuery] [selectors] XML IE6 problem


Hi,
I have the following XML structure:
<getusername>
<login>any name</login>
</getusername>
I do an ajax call on this and try to select the value in <login> like
this:
...
success: function(data) {
    $(data).find("getusername").each(function() {
        var user = $(this).find(".login").text();
        if(user.length > 0) {
//do something
}
...
FF and IE7+ are reacting on this because I get back a proper value.
IE6 (exept the one or other version) returns only 0. Why is that
and what do I have to do to get the proper result in IE6 too?
thx
Tom