Add DOCTYPE to XML documents