# Function buildDoceoUrl

- buildDoceoUrl(
  date: string,
  type: "RCV" | "VOT",
  term?: number,
  language?: string,
  ): string

  Build the DOCEO XML URL for a given date and document type.

  #### Parameters

  - date: string

    Date string in YYYY-MM-DD format

  - type: "RCV" | "VOT"

    Document type: 'RCV' for roll-call votes, 'VOT' for vote results

  - term: number = CURRENT_PARLIAMENTARY_TERM

    Parliamentary term number (defaults to current term 10)

  - language: string = 'EN'

    Language code (defaults to 'EN')

  #### Returns string

  Full URL to the XML document

  #### Example

      buildDoceoUrl('2026-04-27', 'RCV')
      // => 'https://www.europarl.europa.eu/doceo/document/PV-10-2026-04-27-RCV_EN.xml'

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