Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-21 Thread Tim Uckun
> > > Cool. So I assume you want this to be a drop in replacement for whatever > Rails is using now (REXML I assume?). Does Rails have a test suite for > outputting xml that you can test against? > Rails uses a wrapper around REXML. Just the other day I stumbled on a project which replaces som

Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-20 Thread Charlie Savage
Hey Tim, Here is what I came up with. It mimics the rails method in that it does not deal with attributes. It also doesn't do anything with namespaces either. Frankly I don't quite know how I would deal those issues anyway. Cool. So I assume you want this to be a drop in replacement for what

Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-17 Thread tim
> Would probably be pretty easy to see how Rails does it, and then just > modify it as needed to use libxml.  Patches always welcome :) > > Charlie > Hey Charlie. Here is what I came up with. It mimics the rails method in that it does not deal with attributes. It also doesn't do anything with na

Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-12 Thread Charlie Savage
Hey Tim, It would be very nice to have these methods in the respective objects. Rails has a Hash.from_xml method but it uses REXML and is slow. Would probably be pretty easy to see how Rails does it, and then just modify it as needed to use libxml. Patches always welcome :) Charlie

[libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-12 Thread Tim Uckun
It would be very nice to have these methods in the respective objects. Rails has a Hash.from_xml method but it uses REXML and is slow. ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel