Ruby – HTML, XHTML, XML, Tidy and simple parsing

I wanted to use Ruby to download a web page, use HTML Tidy to clean it up and then parse out a section of it. It was pretty simple. I put up a tutorial on my wiki…

* HTML, Tidy and Parsing

This example converts HTML to XHTML using HTML Tidy and Extracts a div section using REXML. Tomorrow I’ll show you how to use XSLT.