Fix xml doctype bug