in reply to XML::Twig output with delimiter
I think ,this would help you to get your need,
my $t= XML::Twig->new( twig_handlers => { '_all_' => sub { $_[1]->suffix( " ");}} ); $t->parsefile("new.xml"); my $root= $t->root; my @para= $root->children(); # get the root's children foreach my $para (@para) { print $para->text()."\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::Twig output with delimiter
by pankaj_it09 (Scribe) on Dec 10, 2008 at 06:17 UTC | |
by mirod (Canon) on Dec 10, 2008 at 07:53 UTC | |
by pankaj_it09 (Scribe) on Dec 10, 2008 at 06:45 UTC |
In Section
Seekers of Perl Wisdom