An HTML, XML, SAX and Reader parser for Ruby with the ability to search documents via XPath or CSS3 selectors… and much more
Nokogiri (鋸) is an HTML, XML, SAX and Reader parser for Ruby. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors.
See the Nokogiri cheat-sheet for tips using Nokogiri.
A digest of most of the methods documented at nokogiri.org. Reading the source can help, too.
From the Nokogiri readme:
XML is like violence - if it doesn’t solve your problems, you are not using enough of it.