visitor save as xml (save primary key bug)