REXML: insert an element as the first child

Hi,

In REXML I can add an element as a child to another element with the method add_element. But it adds the element as the last child. Is there any way to add the element as the first child?

Regards,

Koen Vervloesem

···

--
"A man with a watch knows what time it is. A man with two watches is never sure." (Segal's Law)

[Koen Vervloesem <koen.vervloesem@myrealbox.com>, 2004-08-30 01.04 CEST]

In REXML I can add an element as a child to another element with the
method add_element. But it adds the element as the last child. Is there
any way to add the element as the first child?

See [ruby-talk:25119].

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/25119

Good luck.

See [ruby-talk:25119].

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/25119

Good luck.

Thanks. This helps a lot.

Koen