broken convertRecordToXML because is too complex