Clean up XML