in reply to XML::Twig removing tags from content
I usually use XML::XSH2 for XML manipulation. For a task like yours, I'd use something like
Update: Ouch, this works better:for //li/* mv text() replace . ;
or, even shorter:for //li/* { xmove (text()|*) after . ; rm . ; }
for //li/* xmove (text()|*) replace . ;
In Section
Seekers of Perl Wisdom