# Nokogiri 1.4.0 Released

**URL:** <https://www.ruby-forum.com/t/nokogiri-1-4-0-released/178222>\
**Category:** Ruby\
**Created:** [October 31, 2009, 5:12am UTC](https://www.ruby-forum.com/t/nokogiri-1-4-0-released/178222 "2009-10-31T05:12:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronpowell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Post date:** [October 31, 2009, 5:12am UTC](https://www.ruby-forum.com/t/nokogiri-1-4-0-released/178222/1 "2009-10-31T05:12:47Z")

</div>

Hi everyone! One year ago, I released the first version of nokogiri.  
With the help of my extremely handsome partner in crime, Mike D.,  
we present to you the latest and greatest of our fine codes.

While you’re downloading the new gem, you should check out Nokogiri’s  
new website at:

[http://nokogiri.org/](http://nokogiri.org/)

If you like the cut of that website’s jib, you should know it was  
designed by one “Shane Becker”. Shane was wrongly convicted of an ATM  
robbery and broke out of jail. If you can find him, you can hire him.  
(Actually, I know where to find him).

nokogiri version 1.4.0 has been released!

- [http://nokogiri.org](http://nokogiri.org)
- [http://github.com/tenderlove/nokogiri/wikis](http://github.com/tenderlove/nokogiri/wikis)
- [http://github.com/tenderlove/nokogiri/tree/master](http://github.com/tenderlove/nokogiri/tree/master)
- [http://groups.google.com/group/nokogiri-talk](http://groups.google.com/group/nokogiri-talk)
- [http://github.com/tenderlove/nokogiri/issues](http://github.com/tenderlove/nokogiri/issues)

Nokogiri (é‹¸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s  
many features is the ability to search documents via XPath or CSS3  
selectors.

XML is like violence - if it doesnâ€™t solve your problems, you are not  
using enough of it.

Changes:

### 1.4.0 / 2009/10/30

- Happy Birthday!

- New Features

- Bugfixes

- Deprecations

## FEATURES:

- XPath support for document searching
- CSS3 selector support for document searching
- XML/HTML builder

Nokogiri parses and searches XML/HTML very quickly, and also has  
correctly implemented CSS3 selector support as well as XPath support.

Here is a speed test:

- [Result · GitHub](http://gist.github.com/24605)

## SUPPORT:

The Nokogiri {mailing  
list}[[http://groups.google.com/group/nokogiri-talk](http://groups.google.com/group/nokogiri-talk)]  
is available here:

- [http://groups.google.com/group/nokogiri-talk](http://groups.google.com/group/nokogiri-talk)

The bug tracker is available here:

- [http://github.com/tenderlove/nokogiri/issues](http://github.com/tenderlove/nokogiri/issues)

The IRC channel is #nokogiri on freenode.

## SYNOPSIS:

require ‘nokogiri’  
require ‘open-uri’

# Get a Nokogiri::HTML:Document for the page weâ€™re interested in…

doc =  
Nokogiri::HTML(open(‘[tenderlove - Google Search](http://www.google.com/search?q=tenderlove)’))

# Do funky things with it using Nokogiri::XML::Node methods…

#### 

# 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

## REQUIREMENTS:

- ruby 1.8 or 1.9
- libxml2
- libxml2-dev
- libxslt
- libxslt-dev

## INSTALL:

- sudo gem install nokogiri

---

<div class="post-metadata">

**Author:** ![aaronpowell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Post date:** [October 31, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/nokogiri-1-4-0-released/178222/2 "2009-10-31T17:58:32Z")

</div>

Great work, again! 😉 I’m a bit sad to see the hpricot compatiability  
layer removed but oh well. Changing times.

Thanks for your work!  
Rob
