Add function to force SGML/XML mode