Forum: Ruby nokogiri 1.0.0 Released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aaron P. (Guest)
on 2008-10-31 03:33
(Received via mailing list)
nokogiri version 1.0.0 has been released!

* <http://nokogiri.rubyforge.org/>
* <http://github.com/tenderlove/nokogiri/wikis>
* <http://github.com/tenderlove/nokogiri/tree/master>

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS
selector support.

### FEATURES:

* XPath support for document searching
* CSS3 selector support for document searching
* XML/HTML builder
* Drop in replacement for Hpricot

Nokogiri parses and searches XML/HTML faster than Hpricot, and also has
correctly implemented CSS3 selector support as well as XPath support.

  * http://gist.github.com/18533

Nokogiri also features an Hpricot compatibility layer to help ease the
change
to using correct CSS and XPath.

### SYNOPSIS:

  require 'nokogiri'
  require 'open-uri'

  doc =
Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))

  ####
  # Search for nodes by css
  doc.css('h3.r a.l').each do |link|
    puts link.content
  end

  ####
  # Search for nodes by xpath
  doc.xpath('//h3/a[@class="l"]').each do |link|
    puts link.content
  end

  ####
  # Or mix and match.
  doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
    puts link.content
  end

Changes:

### 1.0.0 / 2008-07-13

* 1 major enhancement

  * Birthday!

* <http://nokogiri.rubyforge.org/>
* <http://github.com/tenderlove/nokogiri/wikis>
* <http://github.com/tenderlove/nokogiri/tree/master>
James H. (Guest)
on 2008-10-31 15:42
(Received via mailing list)
Wow!  That looks pretty cool.

James
On Thu, Oct 30, 2008 at 9:31 PM, Aaron P.
<removed_email_address@domain.invalid
This topic is locked and can not be replied to.