Disregard. I solved the problem.

m.

On Tue, 2006-10-03 at 12:56 -0800, Matt Grimm wrote:
> I was under the impression that the following code should work, but I'm
> having no luck at all. I have a PHP script that returns a simple XML
> string and I need to get the value of the one and only element. 
> 
> $.get('/path/to/script', function(xml) {
>     // xml variable is '<?xml version="1.0"?><result>1</result>'
> 
>     // r variable is []
>     var r = $('result', xml);
> 
>     // t variable is ""
>     var t = r.text();
> });
> 
> I know that the "context" parameter of the $ function is supposed to be
> a DOM object or document, but I thought a previous version of jQuery
> allowed an XML string to be passed in as well. Does jQuery parse XML
> strings into documents or how else is this functionality accomplished?
> 
> m.
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/

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

Reply via email to