just putting a prolog on top will not make it xml. please check if you 
have set the correct mime type for your ajax response.

with the extremely helpful extension firebug you can check what mime 
type the response is of.

i don't know where the text property is from, have you tried:

alert($("tag", xml).get(0).firstChild.data);

or jquerish

alert($("tag", xml).text());


-- Klaus



Realazy XA Chen schrieb:
> may add a prolog to xml file will help:
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> 
> 
> 2006/8/9, Mohsen Saboorian < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
> 
>     Hi,
>     I'm fetching a url using $.get():
>     $.get(url, function(xml) {
>         alert($("tag", xml).get(0).text);
>     });
> 
>     xml is a simple xml tag:
>     <tag>body</tag>
> 
>     IE works fine and alerts "body", but FF alerts undefined.
> 
>     _______________________________________________
>     jQuery mailing list
>     [email protected] <mailto:[email protected]>
>     http://jquery.com/discuss/
> 
> 
> 
> 
> -- 
> realazy.org <http://realazy.org>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to