Replace generated xml files with cross references