Fix up XML file