05 Mar '12, 5pm

"I understand that there may be some HTML documents available on the World Wide Web."

Parsing an HTML / XML Document From a String We’ve tried to make this easy on you. Really! We’re here to make your life easier. html_doc = Nokogiri::HTML("<html><body><h1>Mr. Belvedere Fan Club</h1></body></html>") xml_doc = Nokogiri::XML("<root><aliens><alien><name>Alf</name></alien></aliens></root>") The variables html_doc and xml_doc are Nokogiri documents, which have all kinds of interesting properties and methods that you can read about here . We’ll cover the interesting bits in other chapters. From a File Note that you don’t need to read the file into a string variable. Nokogiri will do this for you. f = File.open("blossom.xml") doc = Nokogiri::XML(f) f.close Clever Nokogiri! With the time you just saved, approach enlightenment by meditating on this koan . From the Internets I understand that there may be some HTML documents available on the World Wide Web. require '...

Full article: http://nokogiri.org/tutorials/parsing_an_html_xml_documen...

Tweets

A few facts you may not know about Chile

pgatour.com 05 Mar '12, 5pm

A few facts you may not know about Chile text size Mar. 5, 2012 The Nationwide Tour is a vehicle that delivers proven perf...

Using Avatars to Understand Adverse Drug Reactions

spectrum.ieee.org 06 Mar '12, 5pm

A few years ago, I wrote about some pioneering work done on creating a “Google Earth for the Bod y” by Andre Elisseeff and...

The Social Era of the Web Starts Now - from IEEE

spectrum.ieee.org 03 Mar '12, 2pm

Photo: Dan Saelinger; Styling: Laurie Raab/Halley Resources; Hair & Makeup: Jennifer Brent/BeautyWing NY This is part of I...

Role Of Web Development

atniz.com 02 Mar '12, 3am

The two most important aspects of search engine optimization are on site and off site. On-site deals that how the website ...

In case you missed it, great story about Wego from Asia Tatler #travel #WegoGlobal

In case you missed it, great story about Wego f...

asiatatler.com 05 Mar '12, 2am

It is almost impossible to believe – only a decade ago the World Wide Web was used for travel research, but bookings were ...

What Susan G Komen Doesn't Understand About Com...

seomoz.org 02 Mar '12, 7pm

Recently, Susan G. Komen pulled some funding for Planned Parenthood, and the internet exploded in disgust. Some people res...

With Reef Ecosystems, It May Be All or Nothing:

green.blogs.nytimes.com 04 Mar '12, 4pm

There might just be something to the idea of marine reserves, a recent survey of the Mediterranean Sea suggests. Getty Ima...

With Reef Ecosystems, It May Be All or Nothing

green.blogs.nytimes.com 04 Mar '12, 3pm

There might just be something to the idea of marine reserves, a recent survey of the Mediterranean Sea suggests. Getty Ima...

With Reef Ecosystems, It May Be All or Nothing

green.blogs.nytimes.com 04 Mar '12, 3pm

There might just be something to the idea of marine reserves, a recent survey of the Mediterranean Sea suggests. Getty Ima...

Green Blog: With Reef Ecosystems, It May Be All...

green.blogs.nytimes.com 04 Mar '12, 4pm

There might just be something to the idea of marine reserves, a recent survey of the Mediterranean Sea suggests. Getty Ima...

How Spiders Stick or Not Stick to their Web: Sp...

enn.com 04 Mar '12, 2pm

RELATED ARTICLES Texas Spiders' Monstrous Webs Baffle Scientists September 1, 2007 11:07 AM The Might of the Spider July 2...

What Susan G Komen Doesn't Understand About Com...

seomoz.org 29 Feb '12, 6pm

Recently, Susan G. Komen pulled some funding for Planned Parenthood, and the internet exploded in disgust. Some people res...