This Sinatrajax RSF package accepts a URL and an XPath, and returns an XML document with result from the XPath.





















Try it from http://rscript.rorbuilder.info/do/xpath/form-xpath

Here's a screenshot of Wired.com's HTML source code viewed as a filtered XML document [twitxr.com].

*update: 08-Ma-2010 @ 7:53am*
Note: When using quotes in the XPath make sure you use double-quotes.

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/0sOryArY6SQ/11297