From: Brian Candler Date: 2004-10-09T23:35:07+09:00 Subject: Re: [ANN] ndb Object-Relational Mapper On Fri, Oct 08, 2004 at 11:29:45PM +0900, George Moschovitis wrote: > ps: I would really like to have a look at your xpath->sql translator. The code isn't there for processing XPATH queries, but I have documented how it could be done. http://www.linnet.org/software/zml/zml-20041009.tgz and see README.path The code is really just a proof-of-concept, but is functional to the point of being able to: - spool in XML documents/fragments to a SQL database - spool out SQL to the original XML, either whole documents or any subtree There are some helper classes which might be useful elsewhere. e.g. an REXML::StreamParser generates a stream of method calls tag_start / tag_end / text etc; I have objects which can convert such a stream of method calls back into the source XML, or into a tree of REXML::Element objects. It would have been nice if REXML provided such objects itself, but I won't raise this with the machine-gun-wielding author :-) Regards, Brian.