Found a quick solution with 2 sed commands applied in succession like this:
sed -i '/<tag>.*<\/tag>/d' test.xml sed -i '/<tag>/,/<\/tag>/d' test.xml