From: Ben Schumacher Date: 2001-11-14T09:22:54+09:00 Subject: [ruby-talk:25119] RE: REXML inserting an element Benoit- Here is are some examples of how to do inserts. doc = Document.new "" doc.root[1,0] = Element.new "two" # -> three = doc.elements["a/three"] doc.root.insert_after three, Element.new "four" # -> These are documented here: http://www.germane-software.com/~ser/software/rexml/tutorial.html Cheers, Ben -----Original Message----- From: Benoit Cerrina [mailto:benoit.cerrina@writeme.com] Sent: Tuesday, November 13, 2001 1:51 PM To: ruby-talk@ruby-lang.org Subject: [ruby-talk:25072] REXML inserting an element Hi, I looked up the doc for REXML and couldn't find how one can insert an element at a specific position, both the Element and Elements have method to 'add' an element in (I guess) the last position but if I have and want to add in between and , how do I do it? Benoit