[libxml-devel] Node#inner_xml() with all namespaces declared?

2009-08-19 Thread Tim Olsen
Hello, I am trying to call Node#inner_xml() and have all namespaces referenced in the inner xml be spit out as well, so that the returned string can be parsed again. For example, take the following xml: http://www.w3.org/2005/Atom";> Phil Bogle's Contacts I would like to be able to call inne

Re: [libxml-devel] Node#inner_xml() with all namespaces declared?

2009-08-19 Thread Tim Olsen
eturn (node.map { |n| n.copy(true).to_s options }.join '') end Tim Tim Olsen wrote: > Hello, > > I am trying to call Node#inner_xml() and have all namespaces referenced > in the inner xml be spit out as well, so that the returned string can be > parsed again. > > For exampl