On Sun, Feb 19, 2012 at 10:59 PM, Mister Fanwank <[email protected]>wrote:
> ...
> I have successfully been able to download the XML file, but I can't
> convert it to an XML object.
>
> downloadedXML.toString();
...
>
I don't know how you're getting "downloadedXML" but as documented [1]
GM_xmlhttpRequest only returns .responseText, and getting an XML object can
be done as like:
responseXML = new DOMParser()
.parseFromString(response.responseText, "text/xml");
The same applies for turning any (valid) XML string into a DOM object.
[1] http://wiki.greasespot.net/GM_xmlhttpRequest
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.