Xml parsing and Firefox 2 & 3

Xml parsing and Firefox 2 & 3


Hi all,
I fell on what seems to be a big issue (for me at least !).
I have that ajax call that returns an xml tree.
For example :
dir
--- dir
--- --- file
--- --- file
--- dir
--- --- file
--- file
--- file
file
file
When I do that code :
[code]
var tmp = data2.children("file");
alert("files : " + tmp.length);
[/code]
It tells me "files : 2" in firefox 3 (the proper answer), and it tells
me "files : 0" in firefox 2 (bad answer)
(where data2 is a "dir" xml node)
If someone knows something about that issue, I would be very pleased
to hear it, since this is the first time I get a different behavior
for parsing XML with jquery in firefox 2 and firefox 3.
Thanks a lot !