Re: libXML, append and order
Maurice Mengel <[email protected]> Wed, 10 Aug 2011 10:28:45 +0200
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <CAAxaVKOS2Rzo9fiL=DQ1kpf71-YCp97t0uBKz+3=M1nRS86F3A@mail.gmail.com> |
Exactly! insertBefore works. I don't how I could have overlooked. Thanks! On Tue, Aug 9, 2011 at 12:33 PM, Thomas Krichel <[email protected]> wrote: > Maurice Mengel writes > >> Is there away to add something to the beginning of a lodelist? > > I'd try to find the parent $parent, and do something like > > my $child_node = $parent->firstChild; > $parent->insertBefore( $newNode, $child_node ); > > Cheers, > > Thomas Krichel http://openlib.org/home/krichel > http://authorprofile.org/pkr1 > skype: thomaskrichel > _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs