Location: a-k-r / htree / htree - HTML/XML tree library

About

htree provides a tree data structure which represent HTML and XML data.

Home Page

http://www.a-k-r.org/htree/

Feature

Usage

Following two-line script convert HTML to XHTML.

require 'htree'
HTree(STDIN).display_xml

The conversion method to REXML is provided as to_rexml.

HTree(...).to_rexml

Requirements

Download

Install

% ruby install.rb

Reference Manual

See rdoc/index.html.

License

Ruby's