only respect self-closing tags in XML mode