[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] nokogiri 1.0.3 Released

Aaron Patterson

11/4/2008 10:13:00 PM

nokogiri version 1.0.3 has been released!

* <http://nokogiri.rubyforg...
* <http://github.com/tenderlove/nokogiri...
* <http://github.com/tenderlove/nokogiri/tree/...

Nokogiri (é?¸) is an HTML, XML, SAX, and Reader parser.

Changes:

### 1.0.3

* 5 Bigfixes

* NodeSet now implements to_ary
* XML::Document should not implement parent
* More GC Bugs fixed. (Mike is AWESOME!)
* Removed RARRAY_LEN for 1.8.5 compatibility. Thanks Shane Hanna.
* inner_html fixed. (Thanks Yehuda!)

== FEATURES:

* XPath support for document searching
* CSS3 selector support for document searching
* XML/HTML builder
* Drop in replacement for Hpricot (though not bug for bug)

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:

* http://gist.github...

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=tende...))

####
# 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

* <http://nokogiri.rubyforg...
* <http://github.com/tenderlove/nokogiri...
* <http://github.com/tenderlove/nokogiri/tree/...

--
Aaron Patterson
http://tenderlovem...

2 Answers

Velvet Jones

8/1/2010 8:30:00 PM

0

"Joker" <joker4153@gmail.com> wrote in message
news:8a5824eb-345c-40aa-a706-16c6ebe5a53b@u4g2000prn.googlegroups.com...
On Aug 1, 8:48 am, "Velvet Jones" <Vel...@Jones.org> wrote:
> "Joker" <joker4...@gmail.com> wrote in message
>
> On Aug 1, 7:46 am, "Velvet Jones" <Vel...@Jones.org> wrote:
>
> > "Joker" <joker4...@gmail.com> wrote in message
>
> >news:3279887c-1f88-497a-8077-8116fc454b7e@z34g2000pro.googlegroups.com...
>
> > > Happy Birthday, Jerry, wherever you are!
>
> > Jerry was born on Yom Kippur? Who knew.
>
> > --
> > VJ
> > -Who among us has not dreamed of faraway places and intertwined lovers?
> >Everyone but you, I guess...have a wonderful day anyway.
>
> Well, thanks. I'll take my senseless joking elsewhere Joker. Talk about
> misnomers.

>Sorry. Did you think I didn't get it? I guess you didn't get that I
>got it, for what it was worth. Hilarious...really.


Oh good. Was that so difficult?


--
VJ
-Who among us has not dreamed of faraway places and intertwined lovers?

WeReo_BoY

8/2/2010 1:12:00 AM

0

"John Doherty" <john@johndoherty.com> wrote in message
news:3b187e02-ef62-4388-81c2-ff65aae7aad6@s17g2000prh.googlegroups.com...
>I had a very Jerry day.
>
> I went to church for a drum based service on creativity, followed by a
> drum circle.
>
> Then, after dinner, from my back yard, I could hear live Beatles
> music . I checked the online schedule, and there was a Beatles tribute
> band playing the bandshell about a quarter mile from my house.
>
> So I headed down there and spent the some time dancing to a nice set
> of Beatles from All Together Now, with the Atlantic and a sunset as a
> backdrop.

I was there for the real thing on August 28, 1964 courtesy of Pops Wereo.
There really needs to be a study, rather a revival and research doneo n the
venue, Forest Hills Tennis Stadium in Queens, New York. I will be happy to
participate.

We have a bit of film. Super 8. It really is more than astonishing that my
rolling film on the venue seems to be the only of it around.