# Function votToLatestVotes

- votToLatestVotes(
  votResults: VotVoteResult[],
  date: string,
  term?: number,
  sourceUrl?: string,
  ): LatestVoteRecord[]

  Convert parsed VOT results into LatestVoteRecord format.

  #### Parameters

  - votResults: VotVoteResult[]

    Parsed VOT vote results

  - date: string

    Session date

  - term: number = CURRENT_PARLIAMENTARY_TERM

    Parliamentary term

  - sourceUrl: string = ''

    Source XML URL

  #### Returns LatestVoteRecord[]

  Array of LatestVoteRecord

  - Defined in clients/ep/doceoXmlParser.ts:611