in reply to Re: prune xml of empty elementsin thread prune xml of empty elements
s@<(.*?)></\1>@@g; [download]
I know one guy who writes regexes like that.