Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > REXML: insert an element as the first child

Reply
Thread Tools

REXML: insert an element as the first child

 
 
Koen Vervloesem
Guest
Posts: n/a
 
      08-29-2004
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)



 
Reply With Quote
 
 
 
 
Carlos
Guest
Posts: n/a
 
      08-31-2004
[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...uby-talk/25119

Good luck.


 
Reply With Quote
 
 
 
 
Koen Vervloesem
Guest
Posts: n/a
 
      08-31-2004
> See [ruby-talk:25119].
>
> http://blade.nagaokaut.ac.jp/cgi-bin...uby-talk/25119
>
> Good luck.


Thanks. This helps a lot.

Koen



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
The element 'compilation' has invalid child element 'compilers'. =?Utf-8?B?Um9iZXJ0?= ASP .Net 3 11-15-2005 01:48 AM
Can TR element be direct child node of TABLE element? Patient Guy HTML 8 02-13-2005 03:25 PM
Possible to traverse the children of an element without specifying child element names? Matt XML 2 10-12-2004 08:23 AM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM



Advertisments