in reply to Re: XML::Twig - extracting some tags from siblings
in thread XML::Twig - extracting some tags from siblings
Hi Mirod,
Thanks for your reply. what you have given is exactly correct.
But I am struggling with the 'while' loop. I tested with the 'if' loop many times, it runs properly. In 'while' loop I get error as can't call method tag.
if ($more_text->tag ne "ahead") { $more_text->move(last_child => $aheadtext); $more_text = $aheadtext->next_sibling; } if ($more_text->tag ne "ahead") { $more_text->move(last_child => $aheadtext); $more_text = $aheadtext->next_sibling; }
Can you please explain.
thanks,
AAkikce
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Twig - extracting some tags from siblings
by mirod (Canon) on Jun 05, 2007 at 15:34 UTC |