htree provides a tree data structure which represent HTML and XML data.
<URL:http://cvs.m17n.org/~akr/htree/>
% ruby install.rb
Following two-line script convert HTML to XHTML.
require 'htree' HTree.parse(STDIN).display_xml
The conversion method to REXML is provided as to_rexml.
HTree.parse(...).to_rexml
Ruby's
Tanaka Akira <akr@m17n.org>