[Greasemonkey] gm_httprequest (sp?) and parsing html files

Anthony Lieuallen arantius at gmail.com
Wed Sep 6 13:18:55 EDT 2006


On 9/6/2006 12:05 PM, Tod Beardsley wrote:
> On 9/6/06, s g <junkvendoremail at yahoo.com> wrote:
>> the gm_httprequest function returns the html page
>>   as a string...right?
>>   can this be parsed into a dom tree?
> function str2xml(strXML) {
> ...
>      var x = str2xml( result.responseText );
> ...

But only if the response is actually valid XML.


More information about the Greasemonkey mailing list