[Greasemonkey] responseXML missing from GM_xmlhttpRequest?
Mihai Parparita
mihai.parparita at gmail.com
Tue May 3 20:30:48 EDT 2005
It's not easy to get at the responseXML due to GM and user scripts
running in different security contexts. You can use the DOMParser
interface to parse responseText into an XML document. Something along
the lines of:
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(response.responseText, "text/xml");
See http://www.mozilla.org/xmlextras/ for more info.
Mihai
On 5/3/05, Joe la Poutre <jsixpack at gmail.com> wrote:
> Hello,
>
> According to the documentation on mozdev, the
> GM_xmlhttpRequest does only suport the .responseText field on its
> results object.
>
> The "real" XMLHttpRequest also returns a .responseXML object; is this
> missing from the GM version?
>
> I need it for an existing script in which I directly parse and
> manipulate the DOM of the result XML...
>
> Anyone an update on this, or a work around?
>
> Cheers,
>
> Joe.
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list