Create XML documents properly.