REXML: insert an element as the first child

Discussion in 'Ruby' started by Koen Vervloesem, Aug 30, 2004.

  1. 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, Aug 30, 2004
    #1
    1. Advertising

  2. Koen Vervloesem

    Carlos Guest

    [Koen Vervloesem <>, 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.
     
    Carlos, Aug 31, 2004
    #2
    1. Advertising

  3. Koen Vervloesem, Aug 31, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Rodriguez
    Replies:
    23
    Views:
    1,182
    David Schwartz
    Dec 9, 2003
  2. HANM
    Replies:
    2
    Views:
    751
    Joseph Kesselman
    Jan 29, 2008
  3. Damphyr
    Replies:
    2
    Views:
    154
    Damphyr
    Jul 16, 2003
  4. Daniel Berger

    rexml error - REXML::Validation

    Daniel Berger, Oct 12, 2004, in forum: Ruby
    Replies:
    2
    Views:
    161
    Henrik Horneber
    Oct 12, 2004
  5. Phlip
    Replies:
    0
    Views:
    156
    Phlip
    Jan 15, 2008
Loading...

Share This Page