Regenerating with corrected XML roots