It would be very similar: 1 pass to build the %self2pnam map, same as in the code above, except maybe adding a $_->purge at the end of the handler. The second pass would have a handler on content that would do exactly what's in the foreach loop.
At this point, I believe you have all the elements to write the code yourself.
In reply to Re^7: xml::twig delete element
by mirod
in thread xml::twig delete element
by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |