fixed xmlProtection for (non)-empty bodies