On Thu, 25 May 2006 19:47:53 +0100, Doug Bryant <[EMAIL PROTECTED]>  
wrote:

> The one other thing (hopefully this is the last) that I can not figure  
> out
> how to do is replace a node with another node.
> [...]
> Any suggestions?  Thanks for helping the noob.
>

We should probably have a replace_with method on XML::Node. It can be done  
easily enough from ruby:

class XML::Node
   def replace_with(other)
     self.next = other
     remove!
   end
end

You'll have to give me some time on the replace by index functionality  
 from REXML. In the meantime, anyone have comments on adding this in?

-- 
Ross Bamford - [EMAIL PROTECTED]
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to