improvement of file record.xml's handling