[Greasemonkey] Question: XPath on XMLHttpRequests
pilgrim at gmail.com
Sat Apr 16 13:53:20 EDT 2005
On 4/16/05, Edward Lee <edilee at gmail.com> wrote:
> On 4/15/05, Aaron Boodman <zboogs at gmail.com> wrote:
> > The way I've seen it done is to create an IFRAME then set it's
> > document.getElementsByTagName("HTML").innerHTML to the
> > responseText.
> > Then you can run xpath's against it's root node.
> Oh. Very cool ;) Thanks. Would it be possible for me to look at where
> you've seen it done?
> _frame.contentDocument.documentElement seems to work.
See also: http://www.howtocreate.co.uk/tutorials/jsexamples/importingXML.html
More information about the Greasemonkey