Re: [libxml-devel] error installing libxml-ruby v0.9.7 on Linux

2009-01-12 Thread Stephen Bannasch
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="ms010809070802090204060207" Hi Stephen, extconf failure: need libm Well, is libm installed? Seems like it is: $ rpm -q glibc-devel glibc-devel-2.5-24 $ rpm -ql glibc-deve

[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

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

Re: [libxml-devel] XmlNode Doc is not bound! (ruby_xml_node.c:58) on 0.9.7

2009-01-12 Thread tel
The smallest example I could come up with which will trigger the problem: require 'rubygems' require 'xml' invalid_xml = <<-XML http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> http://www.w3.org/1999/xhtml";> XML XML::Error.set_handler do |error| raise error end begin XML::

Re: [libxml-devel] XmlNode Doc is not bound! (ruby_xml_node.c:58) on 0.9.7

2009-01-12 Thread Charlie Savage
Hi Tor, I have created a ticket here: http://rubyforge.org/tracker/index.php?func=detail&aid=23540&group_id=494&atid=1973 Tel, Interesting bug, great bug report. So here is what's happening: 1. Call parser.parse 2. libxml creates a document 3. libxml starts creating nodes 4. Error occu