in reply to Remove level of elements (preserving their children) in XML::Twig?
for //policyrules xmove (text()|*) replace . ; [download]