Manually instance an XML parser when needed for xml_escape