RAA - rd2rexml/0.1.0

rd2rexml / 0.1.0

Short description: RDTool Visitor Library for REXML
Category: Library/XML
Status: stable
Created: 2003-07-10 07:43:07 GMT
Last update: 2004-06-14 21:31:26 GMT
Owner: Fujimoto Hisa (Projects of this owner)
Homepage: http://www.imasy.or.jp/~hisa/ruby/rd2rexml/
Download: http://www.imasy.or.jp/~hisa/ruby/rd2rexml/files/rd2rexml-0.1.0.tgz
License: Ruby's
Dependency:
None
Description:

To create a REXML::Element instance from a RD formatted document, RD2REXML was developed as RD::Visitor of RDTool. In RD2REXML, it is concentrating RD format on translating into an XML format, with the structure of original of a document maintained.

Unlike some visitors included in the RDTool distribution, in RD2REXML, there is no high-level function like a solving reference. Instead, a conversion result is an instance of REXML::Element, so you can operate document structure using the function of REXML.

RD2REXML may be helpful when processing RD document as parts of XML/XHTML.

example snippet:

require 'rd2rexml/html_visitor'
visitor = RD2REXML::HTMLVisitor.new
element = visitor.translate( source )
p element.type # => REXML::Element
p element.name # => "div"
element.to_s # => "<div>...</div>"

Versions: [0.1.1 (2004-06-27)] [0.1.0 (2004-06-14)]

Edit this project (for project owner)

back to RAA top