[Greasemonkey] gm_httprequest (sp?) and parsing html files
s g
junkvendoremail at yahoo.com
Wed Sep 6 10:01:04 EDT 2006
the gm_httprequest function returns the html page
as a string...right?
can this be parsed into a dom tree?
i'd like to traverse it using the evaluate() function on
a normally downloaded html file
e.g.
var xpath_result = document.evaluate("id('name')", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null );
if ( xpath_result != null && xpath_result.singleNodeValue != null )
{
}
is this possible.
if not, how can it be done.
thx
---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
More information about the Greasemonkey
mailing list