jezzica85 has asked for the wisdom of the Perl Monks concerning the following question:
The output of this is:my $root = XML::Twig::Elt->new('root'); my $tag = 'tag'; my $content = 'content'; my $next = XML::Twig::Elt->new($tag, $content); $next->paste('last_child', $root); my $element = $root; while($element = $element->next_elt() ) { $element->print; print "\n"; }
when it should just be<tag>content</tag> content
Can anyone see what I'm doing wrong here to cause this? Thank you! Jezzica85<tag>content</tag>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Twig and paste
by mirod (Canon) on Jul 25, 2007 at 16:27 UTC | |
by jezzica85 (Initiate) on Jul 25, 2007 at 16:41 UTC | |
by mirod (Canon) on Jul 25, 2007 at 16:56 UTC | |
by jezzica85 (Initiate) on Jul 25, 2007 at 17:24 UTC | |
by mirod (Canon) on Jul 25, 2007 at 18:02 UTC | |
|