The stupid question is the question not asked | |
PerlMonks |
Re: Moving a tag within text with XML::Twigby Tanktalus (Canon) |
on Sep 25, 2005 at 15:08 UTC ( [id://494910]=note: print w/replies, xml ) | Need Help?? |
First off, to find all of those tags, you should check get_xpath: Way simpler than rolling your own ;-). Rather than using subs_text, you may just want to use set_text to set the text to whatever you've already figured out. But I think your idea is sound - you want to remove some text from one side, and add it to the other.
In Section
Seekers of Perl Wisdom
|
|