Skip to content
HTML/XML tree library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
htree
test
.cvsignore
Makefile
README
htree.rb
install.rb
test-all.rb

README

= htree - HTML/XML tree library

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

== Feature

* Permissive unified HTML/XML parser
* byte-to-byte round-tripping unparser
* XML namespace support
* Dedicated class for escaped string.  This ease sanitization.
* HTML/XHTML/XML generator
* template engine
* recursive template expansion
* converter to REXML document

== Home Page

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

== Requirements

* ruby : http://www.ruby-lang.org/

== Download

* latest release: http://www.a-k-r.org/htree/htree-0.8.tar.gz

* development version: https://github.com/akr/htree

== Install

  % ruby install.rb

== Reference Manual

See rdoc/index.html or
http://www.a-k-r.org/htree/rdoc/

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

== License

Ruby's

== Author
Tanaka Akira <akr@fsij.org>
You can’t perform that action at this time.