in reply to Get text without children in XML::Twig
Well at the moment you can't, but if you give me a good name for the method, I'll add it to the module.
In the meantime, you can do (untested):
my $text= join '', map { $_->text if( $_->is_text) } $elt->children;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get text without children in XML::Twig
by herveus (Prior) on Dec 08, 2006 at 12:27 UTC | |
by mirod (Canon) on Dec 08, 2006 at 15:56 UTC | |
|
Re^2: Get text without children in XML::Twig
by GrandFather (Saint) on Dec 07, 2006 at 19:04 UTC | |
by mirod (Canon) on Dec 07, 2006 at 20:40 UTC | |
by GrandFather (Saint) on Dec 07, 2006 at 20:56 UTC |