Your sample data doesn't seem to be valid XML, so XML modules will fail.
Try the following line as a replace for both of yours:
s/<(\w+)>\s*<\/\1>//g;
Beware that this won't remove two "adjacent" tags from different lines, because you are processing one line at a time.
In reply to Re: delete and substitute
by vitoco
in thread delete and substitute
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |