Jump to content

Example Elections XML

Please use this page to find XML for previous live elections, as well as test data for previous and future tests.

New XML datasets will be added as and when they become available, which is usually very soon after a live test or a real election event.

Generally, you will find that each zip file contains both the nominations and results for one or more elections, as well as some 'running total' type messages such as 'State of parties'.

When processing the XML, always use the nominations XML first to setup your system, in readiness to handle the results XML.


Test data for the 2017 polls:

Test General Election 2017

Click on the following links to download ZIPs of test messagess for the 2017 General Election.

Test Local Council elections 2017

Click on the following links to download ZIPs of test messagess for the 2017 local councils polls.

Test Mayoral elections 2017

Click on the following links to download ZIPS of test messages for the Mayoral elections:

Test Northern Ireland elections 2017

Click on the following links to download ZIPs of test messages for the Northern Ireland election:


Test data for the 2016 polls:

Test EU Referendum 2016

Click on the following links to download ZIPs of test messages for the EU in-out referendum:

Test Local Council elections 2016

Click on the following links to download ZIPs of test messagess for the 2016 local councils polls.

Test London, Welsh Assembly and Scottish Parliament elections 2016

Click on the following links to download ZIPs of test messages for the London Assembly, Welsh Assembly and Scottish Parliament elections:

Test Mayoral elections 2016

Click on the following links to download ZIPS of test messages for the Mayoral elections:

Test Police elections 2016

Click on the following links to download ZIPS of test messages for the Police elections:

Test Northern Ireland elections 2016

Click on the following links to download ZIPs of test messages for the Northern Ireland election:


Historical live XML

Live elections 2017

Click on the following links to download ZIPs of nominations and results XML for the 2017 elections:

Live elections 2016

Click on the following links to download ZIPs of nominations and results XML for the 2016 elections:

Please note that the following is historical data and might not be valid against the current schemas. Message sets are not necessarily as complete as on the night.

General Election 2015

Click here to download a ZIP file which contains XML nominations and results messages generated from the 2015 General Election.

Local Council elections 2015

Click here to download a ZIP of results messages for the 2015 local councils polls.

Mayoral elections 2015

Click here to download a ZIP of nominations and results messages for the 2015 mayoral elections.

Alternatively, click here to download a ZIP file, which contains other example messages.

Note that the messages transmitted during tests contain the word ‘Test’ in their filenames, but of course the messages you can expect to receive for the actual elections do not.

Queries and comments

If you have any technical queries or comments relating to the XML message feed, please contact Press Association Customer Services, and they will quickly pass on the message to the relevant person.

Top of page