Home

AEC Media Feed Version 3.0 User guide (Doc version 3.1, 9 April

image

Contents

1. 89 9 9 How can determine if the results are 91 9 10 When are Matched Historic votes available 92 9 11 Are Polling Place Latitudes and Longitudes available 92 9 11 1 Example with Latitude and Longitude available 92 9 11 2 Example with Latitude and Longitude unavailable 93 9 12 How can l determine the TCP matched historic for Polling Places that have returned First 94 9 13 How can I determine a Candidate s position on the ballot paper 95 9 14 Is there a message that contains the ballot paper definition 96 9 15 What is the difference between Elected Historic and Incumbent 96 Page6 AEC Media Feed User Guide Version 3 1 1 Introduction On election night the AEC delivers a live feed of election results to a number of media organisations and interested third parties These organisations include the ABC Nine Seven Sky SBS AAP and News Limited The purpose of this publication is to provide information to users of the Media Feed System 1 1 Audience This document is intended for stakeholders interested in receiving a feed of election results from the AEC dur
2. 21 5 Media Feed Messages 22 5 1 Message file naming Comvention 00 eee 22 5 1 1 Messages nu nn Pa nsn nens 22 5 1 2 qq a a 23 5 2 White space and 23 5 3 Schema Documentation 23 5 3 1 Election Mark up Language 23 5 3 2 AEC Media Feed Message 23 5 4 Understanding the XML schema 24 5 4 1 XML Software Engineering 24 5 4 2 Reading schema diagrams in this 24 6 Preload M S Sag es L l L IIIa susu cue rene n erra d ohne d reed aaar 26 6 1 Preload Results 26 MMOL EE 26 6 1 2 Message Gchema 0000000 enne nennen enne nnne 26 6 1 3 ExampleXML uuu su bete iia ede dened 26 6 1 4 Estimated Message Gze 28 6 2 Election Event Message 110 28 Meu LUE 28 6 2 2 Message Gchema eene 28 6 2 3 ExampleXML us ua suls elena erst reta Eee Fund Pe Ede cus 31 Page3 AEC Media Feed User Guide Version 3 1 6 2 4 Estimated Message Size 32 6 3 Candidate List Message 230 32 Oe c IUE 32 6 3 2 Message SCchemas
3. AEC DATA CENTRE AEC Divisional Office Election Management System ELMS DCH AEC Divisional Office AEC Divisional Office Messages 47 d 47 XML Media Feed File EI Zip Compression Y INTERNET HOSTING FACILITY FTP SITE ftp mediafeed aec gov au i gt Remote Studio Studio NATIONAL TALLY ROOM MEDIA STUDIO MEDIA DATA CENTRE Page9 AEC Media Feed User Guide Version 3 1 3 Accessing the Media Feed System 3 1 System Requirements To use the Media Feed you will require the following Internet Access Passive Mode File Transfer Protocol FTP Client Software Compression software that supports ZIP files XML Parser or Transformation Engine 3 1 1 Internet Access To access the Media Feed you must have an Internet connection If you have a firewall ensure that it allows the FTP protocol For best performance a high speed Internet connection is recommended 3 1 2 FTP Client Software FTP client software will allow you to connect to the Media Feed system and manage the process of downloading compressed feed files The type of FTP client software you use will depend on your particular requirements For example if you are integrating the Media Feed system into your own real time election results system you may use programmatic FTP component to automate the process of downloading feed files However if you only require
4. Candidate pe CandidateStructure iliationldentifier type AffiliationldentifierStructure I Candidate pe CandidateStructure D E 8 6 2 Example XML A portion of the EML Count message for the 2007 Federal Election is shown below Page 74 Media Feed User Guide Version 3 1 xml version 1 0 encoding utf 8 lt EML xmlns urn oasis names tc evs schema eml xmins ds http www w3 org 2000 09 xmldsig xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 510 count v5 0 SchemaVersion 5 Id 5a95a7c3 a870 41da 9a89 cc7c4c45c9ea TransactionId 7dc03687 2b41 47f 5 b4a6 bO0bf4ca60bcf TransactionId Count EventIdentifier Id 13745 gt lt EventName gt 2007 Federal Election lt EventName gt EventIdentifier Election ElectionIdentifier Id H gt lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt lt ElectionIdentifier gt lt Contests gt lt Contest gt lt ContestIdentifier Id 101 ShortCode CANB gt lt ContestName gt Canberra lt ContestName gt lt ContestIdentifier gt itions gt 1 lt NumberOfPositions gt
5. xml version 1 0 encoding utf 8 MediaFeed de 5a9181c9 119d 4bbb aa36 22a8648dcd51 Created 2010 05 30T14 36 50 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmins xmins xmins xmins xmins xmins eml urn oasis names tc evs schema eml ds http www w3 org 2000 09 xmldsig xal urn oasis names tc ciq xsdschema xAL 2 0 xnl urn oasis names tc ciq xsdschema xNL 2 0 ts urn oasis names tc evs schema eml ts xs http www w3 org 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed pollingdistricts v3 0 xsd ManagingAuthority lt eml Au thorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtua L Tally Room lt Name gt Environment DEV Environment Site PARKES Site Server DEVO Server Platform x64 Platform lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2007 11 24T20 00 24 gt ac3e41d8 5b5f 4801 ade7 1bb332090f09 lt Cycle gt lt PollingDistricthist gt lt eml EventIdentifier Id 13745 gt lt eml EventName gt 2007 Federal Election lt eml EventName gt eml EventIdentifier PollingDistrict PollingDistrictIdentifier Id 179 ShortCode ADEL gt
6. 2 Message 11 9 21 EE TE ua uu 11 322 2 NOPDOSILY 11 3 3 Media Feed FTP Site repetere ttes Fera dud 11 OM URG T C 11 3 3 2 TeStEnVironmomentu u a a 12 3 9 9 Folder SIT Ctllle uuu turi rettet tene E dens 12 2 4 Em 13 3 5 Estimated Download 13 3 6 Recommended Feed 14 3 6 1 Feed Gran latilty rrr tse ee rr Resa 14 3 6 2 Feed Verbositly eene enne enne nennen nennen 14 363 14 4 FOCUS 17 4l Ge nello 17 4 2 Media feed file naming convention 17 4 3 rrr eR eas 17 Page2 AEC Media Feed User Guide Version 3 1 4 4 Standard Granularity Feeds 18 4 4 1 Preload Feed e Da 18 4 4 2 Verbose Feed 18 449 NNI eL 19 4 4 4 Election Markup Language 19 4 5 Detailed Granularity 19 4 51 PrelOad FOC EI 20 4 5 2 Verbose Feed u u u aaah ana a 20 4 5 3 Light e EE 20 4 5 4 Light Progress
7. EMIL xmlns urn oasis names tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigf xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 0rg 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 630 optionlist v5 0 SchemaVersion 5 Id 69368cb9 d33a 47a0 8e56 5caf74286b6d TransactionId e28bc89e 180d 4520 9fcb 8c728d340864 TransactionId OptionsList EventIdentifier Id 9399 gt lt EventName gt 1999 Referendum lt EventName gt lt EventIdentifier gt lt Election gt lt ElectionIdentifier Id Q1 gt lt ElectionName gt The Republic lt ElectionName gt lt ElectionCategory gt Referendum lt ElectionCategory gt lt ElectionIdentifier gt lt Proposal gt Proposalldentifier Id 1 gt lt ProposalName gt The Republic lt ProposalName gt Proposalldentifier Description Message Lang EN gt To alter the Constitution to establish the Commonwealth of Australia as a republic with the Queen and Governor General being replaced by a President appointed by a two thirds majority of the Members of the Commonwealth Parliament Message Description Options ReferendumOptionIdentifier Id Y Yes ReferendumOptionIdentifier ReferendumOptionIdentifier Id N gt No lt ReferendumOptionIdentifier gt Options Proposal
8. otalVotes gt lt Selection gt lt Candidate gt Gentifier Id 17277 gt lt CandidateName gt BRESNAN Amanda lt CandidateName gt CandidateIdentifier Candidate AffiliationIdentifier Id 37 ShortCode GRN gt RegisteredName The Greens lt RegisteredName gt lt AffiliationIdentifier gt lt ValidVotes gt 4910 lt ValidVotes gt lt Selection gt lt Selection gt 8 7 Result Message EML message 520 The schema of the EML 520 Results Message changed between EML version 4 and 5 The most notable change is the Selection element now requires a complete Candidate element when previously only the Candidateldentifier element was required Page 75 AEC Media Feed User Guide Version 3 1 8 7 1 Message Schema Changes Elected 8 7 2 Example XML A portion of the EML Results message for the 2007 Federal Election is shown below xml version 1 0 encoding utf 8 EMIL xmlns urn oasis names tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigf xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 520 result v5 0 xsd SchemaVersion 5 2 4 5 454 7 9 4 970 557 680 gt TransactionId 7dc03687 2b41 47f 5 b4a
9. Election Election ElectionIdentifier Id Q2 ElectionName The Preamble lt ElectionName gt lt ElectionCategory gt Referendum lt ElectionCategory gt lt ElectionIdentifier gt lt Proposal gt Proposalldentifier Id 2 gt lt ProposalName gt The Preamble lt ProposalName gt Proposalldentifier Description Message Lang EN gt To alter the Constitution to insert a preamble lt Message gt Description Page 37 AEC Media Feed User Guide Version 3 1 Options ReferendumOptionIdentifier Id Y Yes ReferendumOptionIdentifier ReferendumOptionIdentifier Id N No ReferendumOptionIdentifier Options Proposal Election OptionsList lt EML gt 6 4 4 Message Size Electoral Event File Size General Election N A General Election including Referendum 2 Questions 3 KB House of Representatives By election N A Referendum 2 Questions 3 KB 6 5 Polling Districts Message This message defines the list of polling districts Divisions and their associated polling places for the electoral event Please note this message is used to convey Polling Place structural information instead of the EML 110 Election Event message Page 38 AEC Media Feed User Guide Version 3 1 6 5 1 Message Schema The message is based on the XML schema in the file aec mediafeed pollingdistricts v3 0 MediaFeed MediaFeedStructure EI derivedBy extension Comment
10. lt AffiliationIdentifier gt Page 35 AEC Media Feed User Guide Version 3 1 lt Type gt Party lt Type gt lt Affiliation gt lt Profession gt Manager lt Profession gt lt Candidate gt 6 3 4 Estimated Message Size Electoral Event File Size General Election 1 8 MB General Election including Referendum 1 8 MB House of Representatives By election 40 KB Referendum N A 6 4 Referendum Options List Message EML 630 6 4 1 Overview This message defines the lists of proposals questions for a referendum Each proposal in a referendum counts as an election so each election identified will hold a single proposal In the AEC media feed system this message packages the list of questions for a referendum This message is generated if there is a referendum election listed in the Election Event message 110 6 4 2 Message Schema The message is based on the XML schema in the file 630 optionslist v5 0 xsd DE Pm ae m Continued Below OptionsList 1 eege t f any other e Ze 0 0 other Na tele di 0 Page 36 Media Feed User Guide Version 3 1 Proposalldentifier tvpe ProposalldentifierStructure ProposalStructure 6 4 3 Example XML An example of the Referendum Options List message for the 1999 Federal Referendum is shown below xml version 1 0 encoding UTF 8
11. lt ElectionIdentifier gt lt Contests gt lt Contest gt ContestIdentifier Id 101 ShortCode CANB gt lt ContestName gt Canberra lt ContestName gt lt ContestIdentifier gt lt NumberOfPositions gt 1 lt NumberOfPositions gt lt TotalVotes gt lt Selection gt lt Candidate gt CandidateIdentifier Id 17277 lt CandidateName gt BRESNAN Amanda lt CandidateName gt CandidateIdentifier Candidate AffiliationIdentifier Id 37 ShortCode GRN RegisteredName The Greens lt RegisteredName gt AffiliationIdentifier ValidVotes 4910 ValidVotes Selection Selection Candidate CandidateIdentifier Id 18175 gt CandidateName COLBERT Natalie lt CandidateName gt CandidateIdentifier Candidate AffiliationIdentifier Id 177 ShortCode LP gt lt RegisteredName gt Liberal lt RegisteredName gt lt AffiliationIdentifier gt lt ValidVotes gt 13387 lt ValidVotes gt lt Selection gt lt Selection gt lt Candidate gt CandidateIdentifier Id 17614 gt lt CandidateName gt ELLIS Annette lt CandidateName gt CandidateIdentifier Candidate AffiliationIdentifier Id 200 ShortCode ALP lt RegisteredName gt Australian Labor Party lt RegisteredName gt lt AffiliationIdentifier gt ValidVotes 20165 ValidVotes Selection Selection Candidate CandidateIdentifier Id 17310 gt lt CandidateName gt HOLDER John lt CandidateName g
12. 11877 gt lt FirstPreferences Updated 2004 10 25T13 38 24 gt TwoCandidatePreferred Updated 2004 10 25T13 38 24 Restricted true PollingPlace PollingPlace Updated 2004 10 18T19 17 45 PollingPlaceIdentifier Id 11452 FirstPreferences Updated 2004 10 18T19 17 45 TwoCandidatePreferred Updated 2004 10 18T19 17 45 Restricted true PollingPlace PollingPlace Updated 2004 10 18T19 18 42 gt PollingPlaceIdentifier Id 8794 FirstPreferences Updated 2004 10 18T19 18 42 TwoCandidatePreferred Updated 2004 10 18T19 18 42 Restricted true PollingPlace 7 1 6 Estimated Message Size 7 1 6 1 Verbose Electoral Event Standard Detailed General Election 2 5 MB 17MB General Election including Referendum 2 Questions 12 MB 18 KB House of Representatives By election 50 KB 75 Referendum 2 Questions 650 MB 650 KB Page 62 Media Feed User Guide Version 3 1 Australian Electoral Commission 7 1 6 2 Preload Electoral Event Standard Detailed General Election 2 5 MB 17MB General Election including Referendum 2 Questions 12 MB 18 KB House of Representatives By election 50 KB 75 Referendum 2 Questions 650 MB 650 KB 7 1 6 3 Light Electoral Event Standard Detailed General Election 1 1 MB 9 7 MB General Election including Referendum 2 Questions 1 5 MB 10 5 MB House of Representatives By election 25 KB 50 KB Referendum
13. 2 Questions 450 MB 450 KB 7 1 6 4 LightProgress General Election N A 2 7MB General Election including Referendum 2 Questions 3 2 MB House of Representatives By election N A 40 KB Referendum 2 Questions N A 450 KB 7 2 EML Count Message EML 510 7 2 1 Overview This message is used to communicate the vote counts for an electoral event using the EML standard This message shows the current first preference votes for candidates and or referendum options Page 63 Media Feed User Guide Version 3 1 7 2 2 Message Schema The message is based on the XML schema in the file 510 count v5 0 xsd Eventldentifier e type EventidentifierStructure Electionldentifier ElectionldentifierStructure j Contestldentifier type ContestidentifierStructure _ i CountQualifier CountQualifierStructure Repor ng nitVotes 4 other di m 7 0 1 D 1 D 1 D 1 D 1 1 D 1 1 1 D 1 D n D D r 1 1 AuditInformation AuditInformationStructure Generated by Xmlgpy www altova com Continued Below Page 64 Media Feed User Guide Version 3 1 attributes a Candidate type CandidateStructure Affiliationidentifier AffiliationldentifierStructure liationldentifier AffiliationidentifierStructure oj X Candidate ype CandidateStru
14. Votes gt lt Votes Type Provisional gt 57 lt Votes gt Votes Type PrePol1 gt 218 lt Votes gt lt Votes Type Postal gt 38 lt Votes gt lt VotesByType gt lt Candidate gt 9 6 2 Vote elements Historic votes percentage swings and other historic or calculated information is not included in the Light message 9 6 2 1 Verbose lt Votes Historic 0 Percentage 10 17 Swing 3 92 MatchedHistoric 6268 gt 10243 lt Votes gt lt VotesByType gt lt Votes Type Ordinary Historic 0 Percentage 9 82 Swing 3 66 gt 7687 lt Votes gt lt Votes Type Absent Historic 0 Percentage 16 24 Swing 5 21 gt 336 lt Votes gt lt Votes Type Provisional Historic 0 Percentage 13 99 Swing 8 1 gt 141 lt Votes gt lt Votes Type PrePoll Historic 0 Percentage 10 88 Swing 4 78 gt 1713 lt Votes gt lt Votes Type Postal Historic 0 Percentage 10 19 Swing 5 3 gt 366 lt Votes gt lt VotesByType gt Page 86 AEC Media Feed User Guide Version 3 1 9 6 2 2 Light Votes MatchedHistoric 0 gt 2067 lt Votes gt VotesByType Votes Type Ordinary gt 1719 lt Votes gt Votes Type Absent gt 35 lt Votes gt Votes Type Provisional gt 57 lt Votes gt Votes Type PrePol1 gt 218 lt Votes gt Votes Type Postal gt 38 lt Votes gt lt VotesByType gt 9 7 How can determine if a Division has been declared The Declared attribute of the Contest element indicates the date and time a
15. also information that links it to other messages created during the same processing cycle Page 78 Media Feed User Guide Version 3 1 GUID that uniquely identifies this media feed message Created The date and time this media feed message was The version number of the schema used to generate this media feed message it The version of the Election Markup Language EML standard referenced by this media feed message The organisation managing the election and publishing the Media Feed message MediaFeedStructure Root element of a media feed message JMessageLanguage The language used in the media feed message The system that generated this media feed message GUID that uniquely identifies the processing in which this message was generated Generated by XMLSpy www altova com Page 79 Media Feed User Guide Version 3 1 lt xml version 1 0 encoding utf 8 MediaFeed Id ba3928500 98eb 4055b 825c 337cfll0ca5c Created 2010 05 30T12 56 00 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmlns eml urn oasis names tc evs schema eml xmlns ds http www w3 org 2000 09 xmldsig xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 0rg 2001 XMLSchema instance xs schemaL
16. apportioned otes or individual SenateFirstPreferencesStructure sent Senate candidate first First preference results For ungrouped candidates if any The total number of informal votes recorded The total number of votes Generated by XmlSpy www altova com Page 57 AEC Media Feed User Guide Version 3 1 attributes El orp IndependentAttributes Indicates that the candidate is an Independent IF the attribute is not supplied it indicates that the candidate is not independent Not included in lightweight Feeds HoAffiliation j Indicates that the candidate does not have a party affiliation IF the attribute is not supplied it indicates that the candidate is affliated with a party Not included in lightweight Feeds The attributes of a candidate to indicate if they are independent or non affiliated Sang eml Candidateldentifier z 4 CandidateHame SenateCandidateResultsStructure Complex type to represent senate candidate results FRegisteredHame in i en i Gd ws w as as wo v as ssa Inidcates the candidates position on the ballot paper EI attributes Historic j Indicates if the candidate was elected at the last ipa sss ses election Not included in q Elected E lightweight Feeds Indicates that the candidate has been elected Indicates the order
17. eml AffiliationIdentifier BallotPosition 4 BallotPosition Elected Historic false gt true lt Elected gt Incumbent Notional true gt true lt Incumbent gt Votes Historic 59632 Percentage 60 07 Swing 0 63 MatchedHistoric 59632 MatchedHistoricFirstPrefsIn 0 gt 46622 lt Votes gt lt VotesByType gt lt Votes Type Ordinary Historic 47641 Percentage 59 92 Swing 0 28 gt 46622 lt Votes gt lt Votes Type Absent Historic 0 Percentage 60 37 Swing 60 37 gt 0 lt Votes gt lt Votes Type Provisional Historic 0 Percentage 61 51 Swing 61 51 gt 0 lt Votes gt lt Votes Type PrePoll Historic 0 Percentage 59 03 Swing 59 03 gt 0 lt Votes gt lt Votes Type Postal Historic 0 Percentage 54 86 Swing 54 86 gt 0 lt Votes gt lt VotesByType gt lt Candidate gt lt TwoCandidatePreferred gt 9 13 How can determine a Candidate s position on the ballot paper Ballot position is included for all candidates and ghosts in all results messages for First Preferences and TCP results at the Division level Ballot position is not be provided for results at the polling place level to optimise message size lt Contests gt Contest Updated 2004 10 26T11 01 59 Declared 2004 10 28T00 00 00 gt eml ContestIdentifier Id 101 gt lt eml ContestName gt Canberra lt eml ContestName gt eml ContestIdentifier lt Enrolment gt 109476 lt Enrolment gt FirstPreferences Updated
18. 4 5 3 Light Feed This feed contains up to date election results and information The feed contains only dynamic data such as votes The light feed does not contain calculated results such as Page 20 AEC Media Feed User Guide Version 3 1 swings or aggregated results This feed is only suitable for users who have their own IT system and have pre loaded data using the Preload feed 4 5 3 1 Messages The light feed contains the following message m Light Results Message 4 5 3 2 Cycle Every 90 seconds on election night and every 15 minutes in the post election period 4 5 4 Light Progress Feed The feed has been developed for those users who are interested in election results at the polling district Division level but require count progress at the polling place level This feed contains up to date election results and information The feed contains only dynamic data for example the count progress of a polling place The light feed does not contain calculated results such as swings or aggregated results This feed is only suitable for users who have their own IT system and have pre loaded data using the Preload feed 4 5 4 1 Messages The light feed contains the following message m Light Progress Results Message 4 5 4 2 Cycle Every 90 seconds on election night and every 15 minutes in the post election period Page21 AEC Media Feed User Guide Version 3 1 5 Media Feed Messages The AEC provides users with election result
19. 98 Media Feed User Guide Version 3 1
20. EventIdentifier Election Updated 2004 11 26T14 36 56 gt eml ElectionIdentifier Id H gt eml ElectionName House of Representatives Election lt eml ElectionName gt eml ElectionCategory House c eml ElectionCategory lt eml Elect Contest Updated 2004 10 26T11 01 59 Declared 2004 10 28T00 00 00 gt lt eml ContestIdentifier Id 101 gt lt Name gt Canberra lt Name gt StateIdentifier Id ACT gt lt PollingDistrictIdentifier gt Page 89 AEC Media Feed User Guide Version 3 1 Enrolment CloseOfRolls 108369 Historic 108959 gt 109476 lt Enrolm FirstPreferences Updated 2004 10 26T711 25 05 PollingPlacesReturned 39 PollingPlacesExpected 39 Candidate idateIdentifier Id 15421 gt eml CandidateName 9uec eml CandidateName eml CandidateIdentifier Page 90 Media Feed User Guide Version 3 1 9 9 How can determine if the results are finalised The Results element of the Results message contains the Phase attribute This indicates the phase in the election period when the message was generated When the Phase attribute has the value FinalResults the election results will no longer change attributes Indicates the date and time that the results For the event were last updated If the tibure is sat supp Indicates the phase of the electoral event For example Election Night Post Election or Final Results Indicates if t
21. Not included in The results For the election at the contest level The total number of electors enrolled to wote in the contest Total enrolment equals the enrolment at the close of rolls plus FirstPreferences First preference results For the contest i TwoCandidatePreferred andidate preferred result for the contest This element is included in all Federal election feeds it is however opti TwoPartyPreferred Two party preferred result For the co This d in all Fairly Safe or n al a number of calculation methods Not included in lightweight feeds contest This ent is not included in standard granualrity feeds Allows for customisation of contest results inclu lightweight Feeds or el with an ElectionCategory of ByElection Generated by www altova com Page 53 AEC Media Feed User Guide Version 3 1 Australian Electoral Commission attributes Indicates the date and time these results were last updated If the attribute not supplied it indicates that results have not been retuned Indicates that the candidate is an Independent If the attribute is not supplied it indicates that the candidate is not independent Not included in lightweight Feeds Indicates that the candidate does not have a party affiliation If the attribute is not supplied it indicates th
22. Vo lt lt Elected Historic false gt false lt Elected gt lt Incumbent Notional false gt false lt Incumbent gt lt Votes Historic 62680 Percentage 0 Swing 0 lt VotesByType gt lt Votes Type Ordinary Historic 7687 Percentage 0 tes gt Votes Type Absent Historic 366 Percentage 0 tes Votes Type Provisional Historic 141 Percentage 0 tes Votes Type PrePoll Historic 1713 Percentage 0 tes Votes Type Postal Historic 366 Percentage 0 tes VotesByType Candidate Page 27 Media Feed User Guide Version 3 1 6 1 4 Estimated Message Size Electoral Event Size Standard Size Detailed General Election 2 5 MB 17MB General Election including Referendum 2 7 MB 17 2 MB House of Representatives By election 50 KB 75KB Referendum 200 KB 200 KB 6 2 Election Event Message EML 110 6 2 1 Overview This message is used for providing information about an election or set of elections The message contains information about the electoral event in this case a Federal Election the elections to be held during the event House of Representatives Senate and maybe a Referendum The message also details the different contests within an election For example a contest could be considered as 5 candidates running for the seat of Fraser in the House of Representative In the AEC Media Feed system this message schema will be used to package the follow information m Nam
23. cca u u auqa n E nnne nnne 33 0 9 9 Example XML nee ME Renee 35 6 3 4 Estimated Message Size 36 6 4 Referendum Options List Message EML 630 36 MESI UN 36 6 4 2 Message Schema seen rennen nennen nnn 36 6 4 3 uuu u uuu u u u S eect 37 6 4 4 Message Size U U EEN 38 6 5 Polling Districts u emn 38 6 5 1 Message 2 39 6 5 2 Example XML LR 41 6 5 3 Estimated Message Size 42 6 6 Senate Group Voting Tickets 42 6 6 1 Message 42 6 6 2 EES 43 6 6 3 Estimated Message Size 45 6 7 Ballot Paper Message 45 6 7 1 Message 0 enne enne 46 6 72 Example XML teneat de edd 46 6 7 3 Estimated Message Size 47 T Results Messages coerceri Seance vende Ee eelere 48 7 1 AEC Results 8 48 KONNT 48 7 1 2 Message 48
24. gt lt xal AddressLatitude gt lt xal AddressLongitude gt lt xal PostalServiceElements gt lt xal AddressLines gt lt xal AddressLine Type Premises gt Beverly al AddressLine Type AddressLinel guth Banks gt s Public School lt xal AddressLine gt ing Georges amp amp Stoney Creek Rds lt xal Addre lt xal AddressLine Type suburb gt BEVERLY HILLS lt xal AddressLine gt xal AddressLine Type State gt NSW lt xal AddressLine gt lt xal AddressLine Type Postcode gt 2209 lt xal AddressLine gt lt xal AddressLines gt lt eml Address gt eml PhysicalLocation PollingPlaceIdentifier Id 33758 Name Beverly Hills South Banks lt WheelchairAccess gt Assisted lt WheelchairAccess gt lt PollingPlace gt Page 93 AEC Media Feed User Guide Version 3 1 9 12 How can l determine the TCP matched historic for Polling Places that have returned First Preferences The Vote structure supports TCP Matched Historic for Polling Places that have returned First Preferences The number of votes recorded For this type of result at the last ele Not included light feeds The number of votes expressed as a percentage of the total number of wo Not included in lightweight Feeds wing in the number of when compared to last Not included in ght Fe The number of het recorded for this ty result at the last lling places that
25. have etumed during this This figure can be Simple type to represent votes The number of historic for this t F for the F polling pl umed during this for Two Candidate t N eight feeds included in lightw Page 94 AEC Media Feed User Guide Version 3 1 TwoCandidatePreferred Updated 2004 10 26T11 01 59 PollingPlacesReturned 37 PollingPlacesExpected 37 Candidate eml CandidateIdentifier 15166 gt eml CandidateName BARNIER Belinda lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 177 ShortCode LP gt ected Historic false gt false lt Elected gt lt Incumbent Notional false gt false lt Incumbent gt Votes Historic 40696 Percentage 39 93 Swing 0 63 MatchedHistoric 40696 MatchedHistoricFirstPrefsIn 40696 gt 30990 lt Votes gt lt VotesByType gt Votes Type Ordinary Historic 32245 Percentage 40 08 Swing 0 28 gt 30990 lt Vo Votes Type Absent Historic 0 Percentage 39 63 Swing 39 63 gt 0 lt Votes gt Votes Type Postal lt VotesByType gt lt Candidate gt lt Candidate gt eml CandidateIdentifier Id 15360 gt lt eml CandidateName gt ELLIS Annette lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 200 ShortCode ALP gt lt eml RegisteredName gt Australian Labor Party ACT Branch eml RegisteredName
26. lt lt lt 5 lt lt x lt lt RR 212 lt qe Vote aggregations to state and national level by party Page50 AEC Media Feed User Guide Version 3 1 Australian Electoral Commission 7 1 4 Schema The message is based on the XML schema aec mediafeed results v3 0 xsd GUID that uniquely identifies this media feed message i The date and time this media feed message was created Comment describing your root element i MessageLanguage MessageGenerator 1 Indicates the date and time that the results For the event were last updated If the attribute is not supplied results have been retumed Indicates the phase of the electoral event for example Election Night Post Election or Final Results Indicates if the message contains candidate names candidate affiliations polling place names contest names historical votes aggregated votes votes calculations and anylsis information Granularity Indicates the granularity of information supplied in the message Results for an electoral event Generated by www altova com 51 Media Feed User Guide Version 3 1 Australian Electoral Commission 7 1 4 1 VotesStructure Complex Type Any element that represents votes in the following diagrams uses the following complex type er of vote
27. lt Name gt Adelaide lt Name gt lt StateIdentifier Id SA lt PollingDistrictIdentifier gt lt NameDerivation gt Named after the city of Adelaide which in turn was named after Queen Adelaide ProductsIndustry Markets brewery Coca Cola bottlers district ProductsIndustry Loca from Grand Ashford North Adelaide Unley Demograp lt gt 75 lt Gardens Junc Clarence Park Enfield Northgate Walkerville and the City of Adelaide lt Location gt hic gt InnerMetropolitan lt Demographic gt Area gt lt PollingPlaces gt PollingPlace Channel PhysicalLocation Id 6648 eml Address AddressDetailsKey Adelaide eml House lt xal AddressLine gt St lt xal AddressLine gt Norwood cS wife of William IV lt NameDerivation gt newspapers military barracks universities rail bus terminals and Adelaide central business tion gt The division of Adelaide covers an area of approximately 75 sq km tion Road in the north to Cross Road in the south Suburbs include Keswick Kilburn Maylands Rose Park St Peters Toorak Goodwood Kent Town Parkside Prospect L polling gt Adelaide gt lt xal PostalServiceElements Type GDA94 gt AddressLatitude gt 34 921200 lt xal AddressLatitude gt AddressLongitude gt 138 599700 lt xal AddressLongitude gt PostalServiceElements gt lt xal AddressLines gt lt xal xal xal xal xa
28. the election results in an ad hoc fashion you may consider manually downloading the compressed feed files using a web browser During the last federal election the Media Feed FTP site supported two types of FTP Active and Passive mode FTP Active mode is generally considered to be a less secure option than Passive FTP The AEC is currently transitioning to a new web hosting provider who has strongly advised the AEC to move to Passive only FTP to improve the security of the AEC s web hosting environment The AEC has adopted this recommendation and will move to provide the Media Feed application using the more secure method of Passive only FTP at the next federal election If your systems do not already support Passive FTP changes will be required to enable your systems to interface with the AEC s Media Feed site 3 1 3 Compression software that supports the ZIP technology A feed file consists of one or more XML messages containing the election results compressed using ZIP technology To process a feed you must be able to extract the compressed XML messages from the feed file Page 10 AEC Media Feed User Guide Version 3 1 3 1 4 XML Parser or Transformation Engine The election results provided by the Media Feed system are stored in XML files called messages To process the election results stored in the messages you will need to parse or transform the file to provide the content in a format that supports your further processing 3 2 M
29. the language used in the message details of the organisation and system that created it and also information that links it to other messages created during the same processing cycle Two new attributes have been added these are m SchemaVersion Indicates the version number of the AEC Media Feed schema used to generate message m EmlVersion Indicates the version of the Election Mark up Language standard referenced by the message A new optional element called Platform element has been added to the GeneratorStrucure complex type The Platform element optionally indicates if 32 bit or 64 bit computer hardware was used to generate the message 8 5 1 Message Schema Changes Page 72 Media Feed User Guide Version 3 1 MediaFeedStructure EI GeneratorStructure The name of the Medis Feed generator system The environment of the generator For example PRODUCTION TEST or DEVELOPMENT The alias of the site where the media feed generator is located The alias of the server hosting the Media Feed The hardware architecture of the server For example x86 or x64 The version of the media feed generator system SE ee ee Se cence cw us Eeer Generated by XMLSpy www altova com 8 5 2 Example XML T Versio MediaFeed Id ba39 SchemaVersion 3 encoding utf 8 gb0 9
30. winner was declared for the contest If the attribute is not supplied no winner has been declared attributes Indic the date and time these results were last updated IF the attribute is not supplied it indicates that results have not been The date and time a winner was delcared For the contest If the attribute is not supplied the contest has not been declared Indicates that some of the results For the contest are projected using matched historic polling place votes If the attribute is not supplied assume results are not projected 9 7 1 Declared Contest Sample Election Updated 2004 11 26T14 36 56 eml ElectionIdentifier Id H eml ElectionName House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier House C Contest Updated 2004 10 26T11 01 59 Declared 2004 10 28T00 00 00 2 101 eml ContestName Canberra eml ContestName lt eml ContestIdentifier gt Page 87 AEC Media Feed User Guide Version 3 1 9 7 2 Undeclared Contest Election Updated 2004 11 26T14 36 56 gt eml ElectionIdentifier Id H lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier House Contest Updated 2004 10 26T11 01 59 gt Soke d
31. you going to process the election results Use a combination of a Preload and a Light feed for optimum parsing performance Use a verbose feed that contain aggregations and calculations Use a verbose feed that contain aggregations and calculations 3 6 3 Examples Below are examples of how different users may use the different types of feeds 3 6 3 1 Television Network with full election coverage Television Network with full election coverage This type of user will televise the election in its entirety The user will almost certainly have a sophisticated election IT system which may use predictive techniques and aggregations other than those used by the AEC It is likely that this type of user will parse the data in the feed and load it into their custom application Election results to polling place level Count progress to polling place level Detailed Preload Detailed Light Election results to division level Count progress to polling place level Page 14 Media Feed User Guide Version 3 1 Standard Preload Detailed Lightprogress Election results to division level Count progress to division level Standard Preload Standard Light 3 6 3 2 Television Network with partial election coverage Television Network with partial election coverage This type of user may televise short focused election updates in between regular programming The user may not have a dedicated election IT system It is unli
32. 0 NameDerivation lt ProductsIndustry gt Light manufacturing commercial and service industries ProductsIndustry Location Banks covers an area of approximately 55 sq km bordered by the Georges River in the west and south the Illawarra railway line and King Georges Road in the east and Milperra and Canterbury Roads in the north The main suburbs include East Hills Lugarno Narwee Padstow Padstow Heights Panania Peakhurst Peakhurst Heights Picnic Point Revesby Heights Riverwood and portions of Bankstown Beverly Hills Milperra Mortdale Oatley Penshurst Punchbowl Revesby and Roselands Location Page 92 Media Feed User Guide Version 3 1 lt Demographic gt InnerMetropolitan lt Demographic gt lt Area gt 55 lt Area gt lt PollingPlaces gt lt PollingPla l Address AddressDetailsKey Beverly Hills North gt lt xal PostalServiceElements Type GDA94 gt lt xal AddressLatitude gt 1 08923 lt xal AddressLatitude gt lt xal AddressLongitude gt 234 098567565 lt xal AddressLongitude gt lt xal PostalServiceElements gt lt xal AddressLines gt AddressLine Type Premises gt Beverly Hills School lt xal Addre YS xal Address Ce Orter Ave lt xal AddressLine gt xal AddressLine Type Suburb gt BEVERLY HILLS lt xal AddressLine gt lt xal AddressLine Type State gt NSW lt xal AddressLine gt lt xal AddressLine Type Postcode gt 2209 lt xal AddressLine gt lt xal AddressL
33. 2004 10 26T11 25 05 PollingPlacesReturned 39 Do pep seas bt 39 gt eml CandidateIdentifier Id 15421 gt lt BallotPosition gt 1 lt BallotPosition gt lt Elected gt false lt Elected gt VU gg x lt VotesByType gt lt Votes Type Ordinary gt 7687 lt Votes gt Page 95 AEC Media Feed User Guide Version 3 1 Votes Type Absent gt 336 lt Votes gt Votes Type Provisional gt 141 lt Votes gt Votes Type PrePoll 1713 Votes Votes Type Postal gt 366 lt Votes gt lt VotesByType gt lt Candidate gt 9 14 Is there a message that contains the ballot paper definition Yes there is a message in the Preload feed that contains an electronic definition of the ballot papers used during the election and is based on the XML schema aec mediafeed ballotpapers v3 0 xsd See Section 6 7 for more Information 9 15 What is the difference between Elected Historic and Incumbent The definition of the Elected and Incumbent elements is shown below attributes Elected 1 itype xs boclean type The historic attribute of the elected element indicates that the candidate is a current MP regardless of which division they currently hold or the division they are contesting during the current election For example John Cobb won the division of Parkes at the 2004 Federal Election However as a result of redistribution he chose to contest the division of
34. 6 bO0bf4ca60bcf TransactionId Result EventIdentifier Id 13745 gt lt EventName gt 2007 Federal Election lt EventName gt EventIdentifier Election ElectionIdentifier Id H gt lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt lt ElectionIdentifier gt lt Contest gt lt ContestIdentifier Id 179 ShortCode ADEL gt lt ContestName gt Adelaide lt ContestName gt ae nie or gt lt Selection gt lt Candidate gt lt Candidate ifier Id 18003 gt dateName gt SOLLY Peter lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt lt AffiliationIdentifier Id 37 ShortCode GRN gt lt RegisteredName gt The Greens lt RegisteredName gt Page 76 AEC Media Feed User Guide Version 3 1 lt AffiliationIdentifier gt lt Elected gt no lt Elected gt lt Selection gt lt Selection gt 8 8 Cycle Times The AEC Media Feed will be published every 90 seconds on election night and every 15 minutes in the post election period Page 77 AEC Media Feed User Guide Version 3 1 9 Frequently Asked Questions 9 1 Do all AEC messages have the same header Yes all messages that are based on AEC schemas have the same file header This header contains a unique ID for the message the date and time it was created the language used in the message details of the organisation and system that created it and
35. 7 1 3 1 Verbose This message contains complete House of Representatives Senate and Referendum election results The message includes vote counts candidate names and party details division information enrolment count progress historic results aggregations and calculations such as percentages and swings 7 1 3 2 Light This message contains a minimal set of House of Representatives Senate and Referendum election results The message does not contain candidate names Party details historic votes calculations or aggregations This message is designed to be used in conjunction with the Preload Results message which is processed prior to the election period 7 1 3 3 LightProgress This message contains a minimal set of House of Representatives Senate and Referendum election results The message does not contain candidate names parties details historic votes calculations or aggregations Where appropriate it contains count progress at the polling place level This message is designed to be used in conjunction with the Preload Results message which is processed prior to the election period Page 49 Media Feed User Guide Version 3 1 7 1 3 4 Comparison Matrix Data Verbose Preload Light Light Progress lt lt lt Candidate ID Candidate Names Candidate Party ID Candidate Party Name Ballot Position Historic Votes Matched Historic Votes Votes Vote calculations like percentages and swing 5 lt ox lt lt lt
36. 7 1 8 Message 2 49 ST METRE t 51 7 1 5 Example XML m 60 7 1 6 Estimated Message Size usseesnseeereeerernrerrrserintsrrinnrtinrnnerinanernnnterenna 62 Page4 Media Feed User Guide Version 3 1 7 2 EML Count Message EML 510 63 4 2 1 OVOIVIOW iei nes ee ciue De er 63 7 2 2 Message Gchema r nnne nnn 64 7 0 3 Example XML LE m u S uu iid ile 65 7 2 4 Estimated Message Gze r 67 7 3 Result Message EML 520 67 rue 67 7 3 2 Message Gchema 000 eene nennen 68 7 3 3 Example XML ient te tek etes i Pearl resa dde re 68 7 3 4 Estimated Message Size 70 8 What s new in Version 3 0 J Q J Q J J nnn nnne 71 ME erigere eie 71 8 2 Election Mark up Language Version 5 0 71 8 3 XML Schema Files 71 8 4 Polling place classification for pre poll voting centres esses 71 8 4 1 Message Schema nnn 71 8 4 2 Example XML u u intent tert ek iere sapaq 72 8 5 Media Feed Element File Header 72 8 5 1 Message Schema 72 8 5 2 Example XML uuu i apte tete D uu 73 8 6 Count Message me
37. 8eb 4055 825c 337cf110ca5c Created 2010 05 30T12 56 00 Version 5 xmlns http www aec gov au xml schema mediafeed is names tc evs schema eml Page 73 Media Feed User Guide Version 3 1 xmlns ds http www w3 0rg 2000 09 xmldsigf xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 0rg 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed results v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt gt 6 0 6 5754 gu gt lt Messageuene Cycle Created 2007 11 24T20 00 24 gt 7dc03687 2b41 47 5 b4a6 b0bf 4ca60bcf lt Cycle gt 8 6 Count Message EML message 510 The schema of the EML 510 Count Message changed between EML version 4 and 5 The most notable change is the Selection element now requires a complete Candidate element when previously only the Candidateldentifier element was required 8 6 1 Message Schema Changes attributes
38. AEC Media Feed Version 3 0 User Guide Document Version 3 1 9 April 2013 Australian Electoral Commission Document Control Version Release Date Author Reason 3 1 9 4 2013 IT Solutions Updated post 2010 election Acceptance and Release Notice This is a managed document All copies of this document preceding this release are obsolete and shall be destroyed This is the AEC Media Feed User Guide Version 3 1 dated 9 April 2013 Release Status Version Number Date Reason for Release Review No 3 1 9 4 2013 Updated to new AEC style template Page 1 Media Feed User Guide Version 3 1 Contents IPM topic 7 Vel UID c 7 TIET plc e 7 1 3 Related Docutments cite reete aa 7 2 System OvervieW ULU III ss awa Kaeaea es ANa aana na 8 2l System alas daha 9 3 Accessing the Media Feed System l u 10 3 1 System 8 10 Safe Wee 10 3 1 2 FTP Client SOftWale coerente reete ets tr media reatu 10 3 1 3 Compression software that supports the ZIP technology 10 3 1 4 XML Parser or Transformation 11
39. Calare at the 2007 Federal Election Therefore John Cobb was not the incumbent for the Division of Page96 AEC Media Feed User Guide Version 3 1 Calare however since he was elected to parliament at the last election he was marked as Elected Historic true Candidate eml CandidateIdentifier Id 17206 gt eml CandidateName COBB John eml CandidateName eml CandidateIdentifier eml AffiliationIdentifier Id 172 ShortCode NP eml RegisteredName Nationals eml RegisteredName lt em1 BallotPosition gt 4 lt BallotPosition gt lt Elected Historic true gt false lt Elected gt lt Notional false gt false lt Incumben The incumbent element indicates that a candidate s party affiliation is the incumbent party for the contest and does not reflect the outcome of any redistribution The notional attribute indicates that the candidate s party affiliation is the notional incumbent party for the contest as a result of any redistribution For example at the 2007 Federal Election for the division of Grey SA Barry Wakelin retired and was replaced by a new Liberal candidate Rowan Ramsey As you can see below Rowan Ramsey was not historic elected but was the incumbent and notional incumbent lt Candidate gt lt eml CandidateIdentifier Id 17679 gt lt eml CandidateName gt RAMSEY Rowan lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdenti
40. Date gt Date Contests Contest eml ContestIdentifier Id 101 gt eml ContestName Canberra eml ContestName eml ContestIdentifier lt PollingDistrictIdentifier Id 101 ShortCode CANB gt lt Name gt Canberra lt Name gt lt StateIdentifier Id ACT gt lt PollingDistrictIdentifier gt lt BallotPaper Id 101 gt lt Candidate gt eml CandidateIdentifier Id 15421 gt lt eml CandidateName gt ELLERMAN Sue lt eml CandidateName gt lt eml CandidateIdentifier gt lt eml AffiliationIdentifier Id 37 ShortCode GRN gt eml RegisteredName The Greens lt eml RegisteredName gt lt eml AffiliationIdentifier gt lt BallotPosition gt 1 lt BallotPosition gt lt Candidate gt 6 7 3 Estimated Message Size Electoral Event XML File Size General Election 750 KB General Election including Referendum 1 MB House of Representatives By election N A Referendum N A Page 47 Media Feed User Guide Version 3 1 7 Results Messages Results messages provide a progressive update of results throughout the election period 7 1 AEC Results Message 7 1 1 Overview EML does not have a specific message schema for reporting progressive results Therefore the AEC uses a custom message for this purpose In the AEC Media Feed System this message is used to package the following information Progress of the count polling places in votes counted declared etc House Candidate First Prefere
41. Identifier lt Preference gt 1 lt Preference gt lt Candidate gt lt Candidate gt lt eml CandidateIdentifier Id 14284 gt lt eml CandidateName gt DEEBANK Ryan lt eml CandidateName gt lt eml CandidateIdentifier gt Page 44 Media Feed User Guide Version 3 1 eml AffiliationIdentifier Id 1126 ShortCode APA eml RegisteredName Australian Progressive Alliance lt eml RegisteredName gt eml AffiliationIdentifier Preference 2 Preference Candidate Candidate eml CandidateIdentifier Id 15626 eml CandidateName HUMPHRIES Gary lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 177 ShortCode LP gt eml RegisteredName Liberal Party of Australia ACT Division lt eml RegisteredName gt eml AffiliationIdentifier lt Preference gt 10 lt Preference gt lt Candidate gt lt Candidate gt 6 6 3 Estimated Message Size Electoral Event XML File Size General Election 3 5 MB General Election including Referendum 3 5 MB House of Representatives By election N A Referendum N A 6 7 Ballot Paper Message This message contains an electronic definition of the Ballot Papers used during the election It is primarily used to support electronic voting systems Page 45 AEC Media Feed User Guide Version 3 1 6 7 1 Message Schema The message is based on the XML schema aec mediafeed ballotpapers v3 0 xsd MediaFeed
42. Structure extension EH attributes 1 The organisation managing the election and publishing 1 the Media Feed message media feed message T this media feed message uniq identifies the processing in which this message Was generate 6 7 2 Example XML emiEventidentifier D emktElectionidentifier 8 Contests E Contest EHF attributes eml Electionidentifier 8 12 BallotPaper Candidate o BallotPaper 3 Contests EH Contest E EH 1 0 eml Contestidentifier 8 attributes attributes BallotPaper Column Grou DI RE he UngroupedCandidate 5 M vl EB attributes emitlectionldentifier BC Ce 1 6 El attributes emiProposal E e Generated by XmiSpy www altova com An example of a partial Ballot Paper message for the 2004 Federal Election is shown below xml version 1 0 encoding utf 8 MediaFeed Id 38c50174 58f5 417d 9882 218f538fdb8b Created 2007 08 28T09 16 17 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed Page 46 Media Feed User Guide
43. Version 3 1 xmlns eml urn oasis names tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigf xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 0rg 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed ballotpapers v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Site gt PARKES lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2007 08 28T07 20 07 58ab9278 28da 43c5 b39e 64e07962220a Cycle BallotPapers eml EventIdentifier Id 12246 lt eml EventName gt 2004 Federal Election lt eml EventName gt lt eml EventIdentifier gt lt House gt lt Election gt eml ElectionIdentifier Id H gt lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt lt eml ElectionCategory gt House lt eml ElectionCategory gt eml ElectionIdentifier Date Type PollingDay lt 1 SingleDate gt 2004 10 09T00 00 00 lt eml Single
44. a Feed User Guide Version 3 1 6 3 3 Example XML A portion of the Candidate List Message for the 2007 Federal Election is shown below xml version 1 0 encoding utf 8 lt EML xmlns urn oasis names tc evs schema eml xmins ds http www w3 org 2000 09 xmldsig xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 230 candidatelist v5 0 xsd SchemaVersion 5 Id 38f3bc47 c36e 4b87 b417 01a088019181 TransactionId ac3e41d8 5b5f 4801 ade7 1bb332090 09 TransactionId CandidateList EventIdentifier Id 13745 lt EventName gt 2007 Federal Election lt EventName gt lt EventIdentifier gt lt Election gt lt ElectionIdentifier Id H gt lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt lt ElectionIdentifier gt lt Contest gt lt ContestIdentifier Id 179 ShortCode ADEL gt lt ContestName gt Adelaide lt ContestName gt lt ContestIdentifier gt lt Candidate Independent no gt CandidateIdentifier Id 17610 gt lt CandidateName gt SLAPE Dennis lt CandidateName gt CandidateIdentifier CandidateFullName xnl PersonName xnl FirstName Dennis Stanley John lt xnl FirstName gt xnl Fi
45. a feed contains a complete set of election results m Generates election results and information as a set of XML messages based on the Election Mark up Language EML schema EML is an international standard for the structured interchange of data among hardware software and service providers engaged in providing election or voter services The EML standard defines numerous message schemas that can be used during many different phases of the election process Only a subset of these messages are relevant to the media feed system Where applicable the AEC will generate the following messages as part of the media feed EML Election Event Message EML 110 message EML Candidate List Message EML 230 message EML Referendum Options List Message EML 630 message EML Count Message EML 510 message EML Result Message EML 520 message Polling Districts Message Custom AEC message based on EML Senate Group Voting Tickets Message Custom AEC message based on EML Ballot Paper Message Custom AEC message based on EML Preload Results Message Custom AEC message based on EML Verbose Results Message Custom AEC message based on EML Lightweight Results Message Custom AEC message based on EML Lightweight Results Message with polling place count progress Custom AEC message based on EML m Compresses all XML messages into ZIP files called feeds to optimise download times Page8 AEC Media Feed User Guide Version 3 1 2 1 System Diagram
46. anularity files contain information and results to Federal Division level where applicable Detailed granularity files contain information to the polling place level where applicable All feeds generated with standard granularity are stored under the Standard directory All feeds generated with detailed granularity are stored under the Detailed directory Each verbosity of feed light light progress verbose and preload published by the AEC have an associated directory Page 12 AEC Media Feed User Guide Version 3 1 m All feed files generated during the election period for a particular type of feed are stored in the associated folder m Users of the FTP site can detect new feeds by listing all files in the associated directory and selecting the most recent file using either file attributes or the date time encoded into the filename Files listed alphabetically appear in ascending date order m Only those files for a particular granularity and verbosity combination appear in the associated directory 3 4 Cycle Times The preload feeds are published twice prior to the election The first preload feed is available on the Monday or Tuesday in the week after the close of nominations and updated in the week before the election On election night the system publishes feeds every 90 seconds and once every 15 minutes in the post election period Please Note Whilst confident of achieving these cycle times the AEC makes no guarantees a
47. at the candidate is affliated with a party Not included in lightweight Feeds Complex type to represent First Preference results 12 The first preference results For each candidate Indicates that the candidate was elected to parliament at the last election Not included in lightweight feeds Indicates that this candidate is the notional incumbent candidate for this contest This will reflect the outcome of any redistribution re E SS Results for each ghost candidates that contested the last election ghost may also be used to reflect the outcome of redistribution ghost cannot receive votes but they are used to present swings The total number of formal votes recorded The total number of informal votes recorded The total number of votes Generated by www altova com 54 Media Feed User Guide Version 3 1 Australian Electoral Commission E attributes Indicates the date and time these results were last updated If the attribute is not supplied it indicates that results have not been retumed Restricted j Indicates that the Two Candidate Preferred results are restricted at this time and are unavailable The AEC does not release the TCP candidates until 6 00pm election night Before this time all TCP results are restricted If the attribute is not supplied it indicates that r
48. ates one to many occurrences 1 Indicates zero to three occurrences 1 Indicates that this is sequence wasl indicates that this is alt ucture Shows the data type Dotted box around element indicates that element is optional The yellow box represents the content model of the complex data type in this case Bstructure The data type is in blue so this is a derivation The derivation is to allow only the values yes or no uenerateu win amLopy Schema Editor m The root element of an instance described by this schema is the element A m The content model of this element is a sequence of the elements B D and E Page 24 Media Feed User Guide Version 3 1 m element B is of complex data type Bstructure This contains a choice of either element C or element F m Element C is a restriction of another complex data type Cstructure In this case the restriction is to forbid the use of the element G which is defined in Cstructure as optional The other elements allowed are H which can appear any number of times but must appear at least once and 1 which can appear up to three times or not at all m Element D is optional and of data type Dstructure This has a content model requiring all of elements J and K which are both of type xs string m Finally element E is of simple data type Etype which is restricte
49. bout the frequency of delivery 3 5 Estimated Download Times The following table gives an estimation of the time required to download the different types of compressed feed files ESTIMATED DOWNLOAD TIME SECONDS Standard Granularity Feed Detailed Granularity Feed Verbose Light Verbose Light Light Progress 1 5Mb DSL Cable 2 0 0 6 10 1 4 2 1 4 1Mb DSL Cable 2 9 0 9 14 8 6 1 2 1 768k DSL 3 9 1 1 19 8 8 1 2 8 512k DSL 5 8 UE 29 7 12 2 4 2 384k DSL 7 7 2 3 39 6 16 3 5 6 256k DSL 11 6 3 4 59 4 24 4 8 4 128k ISDN 23 1 6 9 118 8 48 8 16 9 64k ISDN 46 3 13 8 237 5 97 5 33 8 56k Modem 52 9 15 7 271 4 111 4 38 6 33 6k Modem 89 7 26 7 460 6 189 1 65 5 28 8k Modem 105 7 31 4 542 9 222 9 77 1 Please Note The download times above are estimates only Page 13 AEC Media Feed User Guide Version 3 1 3 6 Recommended Feed Usage Although the AEC is publishing numerous feeds with different granularity and verbosity generally you will only need to use one or two types of feeds To determine the type of feed you require consider the following points 3 6 1 Feed Granularity Are you interested in election results at the polling place level for House of Representatives Use a detailed granularity feed Use a standard granularity feed Please Note If you are interested in results to the Division level but require the return status of individual polling places use the Detailed Light Progress feed 3 6 2 Feed Verbosity How are
50. cture ReferendumoOptionldentifier ReferendumOptionidentifierStru type ValidVotes xs nonNegativelnteger VoteGroup Provisionals b D D D UncountedVotes I 1 1 n D D D 1 1 1 D L T D D 1 L T 1 1 1 1 r D D D 1 1 1 L xs nonNegativelnteger 7 2 3 Example XML A portion of the EML Count message for the 2007 Federal Election is shown below xml version 1 0 encoding utf 8 EMIL xmlns urn oasis names tc evs schema eml xmins ds http www w3 org 2000 09 xmldsig xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 510 count v5 0 xsd SchemaVersion 5 Id 5a95a7c3 a870 41da 9a89 cc7c4c45c9ea Page 65 Media Feed User Guide Version 3 1 lt TransactionId gt 7dc03687 2b41 47 5 b4a6 b0bf 4ca60bcf lt TransactionId gt lt Count gt lt EventIdentifier Id 13745 gt lt EventName gt 2007 Federal Election lt EventName gt EventIdentifier Election ElectionIdentifier Id H gt lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt
51. d from the xs NMTOKEN data type by only allowing the values yes and no Page25 AEC Media Feed User Guide Version 3 1 6 Preload Messages Users that have their own election systems may wish to pre load static election information such as candidate names before the start of the election Pre loading information also facilitates the use of a lightweight feed during the election period The preload feed will contain the following messages where appropriate Preload Results Message Election Event Message EML 110 Candidate List Message EML 230 Referendum Options List Message EML 630 Polling Districts Message Senate Group Voting Tickets Message Ballot Paper Message AEC and EML XML Schema Files Most users will use only the Preload Results message to pre load the key election information Other messages provide supplementary information For example the Preload Results message contains the ID name ballot position and party for all candidates and the Candidate List message provide their telephone numbers and addresses 6 1 Preload Results Message 6 1 1 Overview This message is designed for users wishing to preload static election information such as candidate names party names historic votes and senate group structure prior to the election This message is usually used in conjunction with light feeds which are used during the election period 6 1 2 Message Schema The message is based on the XML sche
52. de GRN gt eml RegisteredName The Greens lt eml RegisteredName gt eml AffiliationIdentifier lt BallotPosition gt 1 lt BallotPosition gt lt Elected Historic false gt false lt Elected gt lt Incumbent Notional false gt false lt Incumbent gt lt Votes Historic 0 Percentage 10 17 Swing 3 92 Mat chedHistoric 6268 gt 10243 lt Votes gt lt VotesByType gt lt Votes Type Ordinary Historic 0 Percentage 9 82 Swing 3 66 gt 7687 lt Votes gt Votes Type Absent Historic 0 Percentage 16 24 Swing 5 21 gt 336 lt Votes gt Votes Type Provisional Historic 0 Percentage 13 99 Swing 8 1 gt 141 lt Votes gt Votes Type PrePoll Historic 0 Percentage 10 88 Swing 4 78 gt 1713 lt Votes gt Votes Type Postal Historic 0 Percentage 10 19 Swing 5 3 gt 366 lt Votes gt lt VotesByType gt lt Candidate gt 9 11 Are Polling Place Latitudes and Longitudes available Where available polling place latitude and longitude are provided in the Polling District message The latitude and longitude have been calculated with GDA94 standard 9 11 1 Example with Latitude and Longitude available PollingDistricts PollingDistrictIdentifier Id 103 ShortCode BANK gt lt Name gt Banks lt Name gt StateIdentifier Id NSW gt PollingDistrictIdentifier NameDerivation Named after botanist Sir Joseph Banks 1743 1820 who accompanied Captain Cook on his voyage to Australia in 177
53. dentifier gt lt Date Type PollingDay gt lt SingleDate gt 2007 11 24T00 00 00 lt SingleDate gt lt Date gt lt Contest gt lt ContestIdentifier Id 179 ShortCode ADEL gt lt ContestName gt Adelaide lt ContestName gt lt ContestIdentifier gt Area Id 179 Type division gt Adelaide lt Area gt lt Position gt Member of the House of Representatives for the Federal Division of Adelaide lt Position gt lt Vot ingMethod gt other lt VotingMethod gt lt MaxVotes gt 1 lt MaxVotes gt lt NumberOfPositions gt 1 lt NumberOfPositions gt lt Contest gt lt Contest gt lt ContestIdentifier Id 197 ShortCode ASTO gt lt ContestName gt Aston lt ContestName gt lt ContestIdentifier gt lt Area Id 197 Type division gt Aston lt Area gt lt Position gt Member of the House of Representatives for the Federal Division of Aston lt Position gt lt Vot ingMethod gt other lt Vot ingMethod gt lt MaxVotes gt 1 lt MaxVotes gt lt NumberOfPositions gt 1 lt NumberOfPositions gt lt Contest gt Page 31 AEC Media Feed User Guide Version 3 1 6 2 4 Estimated Message Size Electoral Event File Size General Election 55K General Election including Referendum 57 KB House of Representatives By election 2 KB Referendum 2KB 6 3 Candidate List Message EML 230 6 3 1 Overview This message is used for providing the list of candidates for the contests within an electoral event The list contai
54. describing your root element j eml Eventldentifier type EventidentifierStructure icture PollingDistrictidentifier type PollingDistrictidentifierStructure PollingDistrictList d List of poling districts for an electoral event K Koleeg f C Continued Below Generated by XmISpy www altova com Page 39 AEC Media Feed User Guide Version 3 1 PhysicalLocati PostalLocation PostalLocationStructure sion l3 PollingPlaceStructure EI Extension of the polling F ElectronicLocation place complex type xs cken D derivedBy lt The unique ID for the Division allocated by the itype PollingPlaceClassificationType Indicates the type of polling place static remote mobile mobile prison or special hospital team If not supplied assume type xs NMTOKEN The short code used to represent a polling place PollingPlaceldentifier PollingPlaceldentifierStructure Unique identifier for a polling place The order in which the polling districts should be displayed in a list class PwneelchairAccess itype WheelChairAccessType Indicates the polling place has wheelchair access Generated by XmlSpy www altova com Page 40 AEC Media Feed User Guide Version 3 1 6 5 2 Example XML An example of a partial Polling Districts message for the 2004 Federal Election is shown below
55. e lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt lt AffiliationIdentifier Id 198 ShortCode ALP gt lt RegisteredName gt Australian Labor Party lt RegisteredName gt lt AffiliationIdentifier gt lt Elected gt no lt Elected gt lt Selection gt lt Selection gt lt Candidate gt lt CandidateIdentifier Id 18009 gt lt CandidateName gt BIAR Sandy lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt AffiliationIdentifier Id 3 ShortCode DEM gt lt RegisteredName gt Australian Democrats lt RegisteredName gt lt AffiliationIdentifier gt lt Elected gt no lt Elected gt lt Selection gt lt Selection gt lt Candidate gt CandidateIdentifier Id 17610 gt lt CandidateName gt SLAPE Dennis lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt AffiliationIdentifier Id 1129 ShortCode FFP gt RegisteredName Family First Party lt RegisteredName gt AffiliationIdentifier Elected no Elected Selection Selection Candidate CandidateIdentifier Id 17633 gt lt CandidateName gt MARSH Tracy lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt lt AffiliationIdentifier Id 184 ShortCode LP gt lt RegisteredName gt Liberal lt RegisteredName gt lt AffiliationIdentifier gt lt Elected gt no lt Elected gt lt Selection gt lt Contest gt Page 69 AEC Media Feed User Guide Version 3 1 7 3 4 E
56. e ofthe electoral event m Event and Election related dates m The list of elections and contests in the electoral event for example House of Representatives Senate and a Referendum The media feed system generates a single election event message for every Federal electoral event For example if there are two concurrent by elections being held on the same weekend the media feed system creates an event message for each of the by elections 6 2 2 Message Schema The message is based on the XML schema in the 110 electionevent v5 0 xsd Page 28 AEC Media Feed User Guide Version 3 1 oo Eventldentifier type EventidentifierStructure _ 4ManagingAuthority ElectionEvent type ManagingAuthorityStructure Documentldentifier 29 B Electionldentifier ElectionidentifierStructure 4 other 3 7 77 S E Generated by XmlSpy www altova com Page 29 AEC Media Feed User Guide Version 3 1 attributes a Contestldentifier type ContestidentifierStructure type Z VotingMethod type VotingMethodType xs positivelnteger defaut Rd 4 4 6 2 3 Example XML A portion of the Election Event Message for the 2007 Federal Election is shown below xml version 1 0 encoding utf 8 EMIL xmlns urn oasis name
57. eGroupVotingTicketsStru ElectionigentiferStructure 1 Ust of Senate groups and their group voting zz sesion B Kee type ContestidentifierStructure TIT woe M RS fed by www altova com Continued Below Page 42 Media Feed User Guide Version 3 1 Groupldentifier ateGroupVotingTicke SenateGroupldentifierStructure Stateldentifier cf StateldentifierStructure eml Candidateldentifier kpo 2 ES T CandidateldentifierStructure SenateGroupStructure J The list of candidates inthe Complex type to respresents group emt Affiliationldentifier 5 type AffiliationidentifierStructure use required The number of the group voting ticket supplied by the LEA eg When group has A a i multiple tickets this es the Las GroupVotingTicket order in which tickets are applied type SenateGroupVotingTicketStruct to remainder ballot papers 0 3 The group voting ticket s for the group Group may up to three group voting tickets j eml Candidateldentifier t CandidateldentifierStructure eml Affiliationldentifier D AffiliationidentifierStructure xs positivelntege Generated by XmIlSpy www altova com 6 6 2 Example XML An example of a partial Senate Groups message for the 2004 Federal Election is shown below xml version 1 0 encodin
58. election period 4 4 4 Election Markup Language EML Feed This feed contains up to date election results and information presented strictly using the EML international standard messages The feed contains static data such as candidate names and dynamic data such as votes This feed is suitable for users who have their own IT system which is EML compliant and is also suitable for those users who do not have an IT system and simply wish to transform the XML file into another format 4 4 4 1 Messages The verbose feed contains the following messages m Count Message 510 m Results Message 520 4 4 4 2 Cycle Every 90 seconds on election night and every 15 minutes in the post election period 4 5 Detailed Granularity Feeds Users who are interested in election results and or count progress at the polling place level use the detailed granularity feeds Because detailed granularity feeds contain significantly more information they are much larger in size than the standard granularity feeds The detailed granularity feeds will be only used by those organisations that have specialised requirements or complex predictive and analytical IT systems Page 19 Media Feed User Guide Version 3 1 4 5 1 Preload Feed Users that have their own election system may use the Preload feed The preload feed will allow this type of user to pre load static election information like candidates names before the elec
59. entifie eml ContestName Canberra eml ContestName eml ContestIdentifier Page 88 Media Feed User Guide Version 3 1 9 8 How can determine the progress of the count A number of elements in the schema contain Updated attributes that indicate the date and time the results were last updated If the Updated attribute is missing it indicates that the result have not yet been updated The PollingPlacesReturned and PollingPlacesExpected attributes indicate the number of polling places that have returned for a particular count r HouseFirstPreferencesStructure extension E attributes Indicates the date and tire these results were last updated If the attribute is not supplied it indicates that results have not been retumed FirstPreferences First preference results for the contest E attributes orp CountProgressAttributes PollingPlacesExpected The total number of count reporting units polling places expected to retum results For this count in this phase of the election PollingPlacesReturned Indicates the number of count reporting units polling places that have returned results For this count The count progress attributes Results Updated 2004 12 10T15 35 46 Phase FinalResults Verbosity Verbose Granularity Standard gt lt eml EventIdentifier Id 12246 gt gt 2004 Federal Election lt eml EventName lt eml
60. erred element is set to the value of true attributes Indicates the date and time these results were last updated If the attribute is Indicates that the Two Candidate Preferred results are restricted at this time and are unavailable The AEC does not release the TCP candidates until 6 00pm election night Before this time all TCP results are restricted IF the attribute is not supplied it indicates that results are not restricted TwoCandidatePreferredStruct lE Complex type to represent TCP results Indicates that the incorrect candidates have bee available not supplied it indicates that results are not maverick lt E Candidate 9A Candidate 2 Prefe ults is only included when both the Maverick attribute is False and the Restricted attribute is False Please note CandidateName KnownAs and AffiliationIdentifier are not included in lightweight feeds Generated by XmISpy www altova com TwoCandidatePreferred 2004 10 2 15 17 09 Maverick true PollingPlacesReturned 47 PollingPlacesExp Aq f gt Page85 AEC Media Feed User Guide Version 3 1 TwoCandidatePreferred Updated 2004 10 28T15 1 PollingPlacesReturned 47 PollingPlacesExpecteS 09 Restricted true ZS 9 6 What are the main differences between the light and verbose messages 9 6 1 Candidates elements Candidate
61. essage Types The Media Feed content is packaged in a number of different ways to satisfy the variety of users of the system The message types are categorised by Granularity and Verbosity These types are referred to throughout the document 3 2 1 Granularity Granularity defines the level to which the message provides details m Standard granularity provides results to the Polling District Division level for House of Representatives and Referendum and State level for Senate m Detailed granularity provides results to the Polling Place level for House of Representatives Polling District Division level for Referendum and State level for Senate 3 2 2 Verbosity Verbosity defines the amount of information provided within a message m provides data in a number of EML messages This exists to support users that have an existing EML message based system m Light provides only dynamic data vote counts etc and no static information candidate names party names historic votes etc m Light Progress is available for Detailed granularity and provides the same as a Light message with the inclusion of count progress at the polling place level m Preload provides all static information candidate names party names historic votes etc and empty dynamic information vote counts etc It is designed to provide structural data for users to preload their election results system It is identical in structure and level of content to the Ve
62. esults are not restricted Indicates that the incorrect candidates have been selected for the two candidate preferred count In this case no TCP results are available If the attribute is not supplied it indicates that results are not maverick TwoCandidatePreferredStructure E Complex type to represent TCP results j eml Candidateldentifier J emt Affiliationldentifier t pe Candidate E The Two Candidate 2 SEN Preferred results is only idus ane beth te CandidateName Known s Maverick attribute is False ari and the Restricted attibute is and AffiiationIdentifier are not included in lightweight Rae feeds E Please note Generated by www altova com Page 55 AEC Media Feed User Guide Version 3 1 7 1 4 3 Senate Element e attributes lt upda d Pth supplied n nts an The total number of enrolled t to The numi available For at the polling district Only included in iled granurlarity feeds ae ee 8 4 Analysis E including aggreations Not included in lightweight feeds Generated by XmiSpy www altova com Page 56 AEC Media Feed User Guide Version 3 1 Groupldentifier Below the line votes for Candidates Above the line votes for the group 1 c0 for senate groups First preference results one or more For the group that
63. fier Id 184 ShortCode LP gt lt eml RegisteredName gt Liberal lt eml RegisteredName gt lt immi OtPosition l1 BallotPosition Elected Historic false gt false lt Elected gt ncumbent Notional true gt true lt Incumben For example at the 2007 Federal Election the Liberals got redistributed out of the division of Macquarie NSW In this case Kerry Bartlett LP was Historic Elected and incumbent however Bob Debus ALP was the notional incumbent as a result of the redistribution Candidate eml CandidateIdentifier Id 17921 eml CandidateName BARTLETT Kerry lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 188 ShortCode LP gt lt eml RegisteredName gt Liberal lt eml RegisteredName gt lt eml A san otPosition gt 3 lt BallotPosition gt lt Elected Historic true gt false lt Elected gt lt Incumbent Notional false gt true lt Incumbent gt Page 97 AEC Media Feed User Guide Version 3 1 Candidate eml CandidateIdentifier Id 18087 eml CandidateName DEBUS Bob eml CandidateName eml CandidateIdentifier eml AffiliationIdentifier Id 194 ShortCode ALP eml RegisteredName Labor eml RegisteredName lt em1 Affiliakiowageos ss Position 5 BallotPosition Elected Historic false gt false lt Elected gt Incumbent Notional true gt false lt Incumbent gt Page
64. g utf 8 MediaFeed Id ffb7eb99 37f6 4df8 86d7 b89c47566f40 Created 2006 12 20T17 05 25 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmlns eml urn oasis names tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigf Page 43 Media Feed User Guide Version 3 1 xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed groupvotingtickets v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Site gt PARKES lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2006 11 20T10 50 42 gt e28bc89e 180d 4520 9f cb 8c728d3d0864 lt Cycle gt lt SenateGroupVotingTickets gt lt eml EventIdentifier Id 12246 gt lt eml EventName gt 2004 Federal Election lt eml EventName gt eml EventIdentifier Election eml ElectionIdentifier Id S gt lt eml ElectionName gt Se
65. he message contains candidate names candidate affiliations polling place names contest names historical votes aggregated votes votes calculations and anylsis information Indicates the granularity of information supplied in the Results message Results For an electoral event eml Eventidentifier d Messages any other Generated by XmlSpy Results Updated 2004 12 10T715 35446 Phase FinalResults Verbosit Verbose Granularity Standard gt eml EventIdentifier Id 12246 gt 91 Media Feed User Guide Version 3 1 eml EventIdentifier Election Updated 2004 11 26T14 36 56 gt eml ElectionIdentifier Id H gt eml ElectionName House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier 9 10 When are Matched Historic votes available Matched historic votes represent the sum of historic ordinary votes for those polling places that returned at this election Matched historic votes are used to project swings early on election night which prevents large variations in swing as different sized or demographic polling places return The MatchedHistoric attribute is shown in all election phases Candidate eml CandidateIdentifier Id 15421 lt eml CandidateName gt ELLERMAN Sue lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 37 ShortCo
66. ic 0 Percentage 10 88 Swing 4 78 gt 1713 lt Votes gt lt Votes Type Postal Historic 0 Percentage 10 19 Swing 5 3 gt 366 lt Votes gt lt VotesByType gt lt Candidate gt 7 1 5 2 Light lt xml version 1 0 encoding utf 8 MediaFeed Id 2 c8c7e5cb fdc3 4e6b a8f 5 0e7050878b9f Created 2006 12 20T17 05 48 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmlns eml urn oasis names tc evs schema eml xmlns ds http www w3 org 2000 09 xmldsig xmlns oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed results v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Site gt PARKES lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2006 11 20T10 50 42 gt e28bc89e 180d 4520 9f cb 8c728d3d0864 lt Cycle gt Page 61 AEC Media Feed User Guide Version 3 1 Res
67. ication has been added to the core schema to support a possible legislation change that would allow a pre poll vote cast within the elector s own division to be treated as an ordinary vote and counted on Election night A new classification called PrePollVotingCentre has been added to the simple type PollingPlaceClassificationType 8 4 1 Message Schema Changes xs simpleType name PollingPlaceClassificationType xs annotation xs documentation Simple type to indicate the type of polling place lt xs documentation gt xs annotation xs restriction base xs token Page 71 Media Feed User Guide Version 3 1 xs enumeration value Static xs enumeration value RemoteMobile gt xs enumeration value SpecialHospital gt Umeration value PrisonMobile enumeration value PrePollVotingCentre lt xs res lt xs simpleType gt 8 4 2 Example XML lt PollingPlace Updated 2010 04 27T09 46 53 PollingPlaceIdentifier Id 30092 Name Divisional Office PREPOLL Classification PrePollVotingCentre FirstPreferences Updated 2010 04 27T09 46 53 Candidate eml CandidateIdentifier Id 20717 Votes Historic 0 Percentage 0 Swing 0 gt 0 lt Votes gt 8 5 Media Feed Element File Header All messages that are based on the AEC schemas have the same file header This header contains a unique ID for the message the date and time it was created
68. in which the candidate was elected Only displayed when the value of elected is True e Incumbent Indicates that this candidate is the incumbent candidate For this contest Not included in lightweight Feeds VotesGroup Group of elements used to 4 VotesByType represent votes Breakdown of the wotes by vote type Generated by XmISpy www altova com Page 58 Media Feed User Guide Version 3 1 Australian Electoral Commission 7 1 4 4 Referendum Media Feed Element E attributes upplied no re been returned plus reinstate roll addi roll deletions ReferendumMediaFeedStructure El ent a media Feed for isation of E EE Generated by XmISpy www altova com Page 59 Media Feed User Guide Version 3 1 The votes individual pr ProposalResultsStructure H Gen tal number of informal recorded ent the results nplex type For referendum sal E attributes condiditions For a Federal referendum Generated by XmlSpy www altova com 7 1 5 Example XML 7 1 5 1 Verbose xml version 1 0 encoding utf 8 MediaFeed Id 81eb418f ed04 4e1b 8930 53df6fa979e4 Created 2006 12 20T17 05 48 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmlns eml urn oasis names tc evs schema eml xmins ds h
69. ines gt lt eml Address gt eml PhysicalLocation PollingPlaceIdentifier Id 1 Name Beverly Hills North gt lt WheelchairAccess gt Assisted lt WheelchairAccess gt lt PollingPlace gt 9 11 2 Example with Latitude and Longitude unavailable lt PollingDistrict gt lt PollingDistrictIdentifier Id 103 ShortCode BANK gt lt Name gt Banks lt Name gt StateIdentifier Id NSW gt lt PollingDistrictIdentifier gt lt NameDerivation gt Named after botanist Sir Joseph Banks 1743 1820 who accompanied Captain Cook on his voyage to Australia in 1770 lt NameDerivation gt lt ProductsIndustry gt Light manufacturing commercial and service industries lt ProductsIndustry gt lt Location gt Banks covers an area of approximately 55 sq km bordered by the Georges River in the west and south the Illawarra railway line and King Georges Road in the east and Milperra and Canterbury Roads in the north The main suburbs include East Hills Lugarno Narwee Padstow Padstow Heights Panania Peakhurst Peakhurst Heights Picnic Point Revesby Heights Riverwood and portions of Bankstown Beverly Hills Milperra Mortdale Oatley Penshurst Punchbowl Revesby and Roselands lt Location gt lt Demographic gt InnerMetropolitan lt Demographic gt lt Area gt 55 lt Area gt lt PollingPlaces gt lt PollingPla lt eml Address AddressDetailsKey Beverly Hill lt xal PostalServiceElements Type GDA94
70. ing Federal Elections This document is suitable for use by the following staff working with the AEC the media or other interested stakeholders Business Users Election Analysts Business Analysts Software Developers Network Managers Network Engineers 1 2 Scope This document provides information relating to the use of the Media Feed system The document discusses Accessing the System Feeds Compressed Files XML Messages Frequently Asked Questions deco de 1 3 Related Documents The full schema definition and associated documentation is available from the AEC at the following location http www aec gov au media mediafeed index htm Page 7 AEC Media Feed User Guide Version 3 1 2 System Overview The objective of the AEC Media Feed system is to deliver uninterrupted real time election information and results to any media organisation or interested third party anywhere in Australia or internationally regardless of size or location To achieve this objective the AEC Media Feed system m Provides a feed of election results and information delivered to the media using the File Transfer Protocol FTP over the Internet m Is implemented using a pull model and publishes the feed to an FTP site Users of the system can then poll this location and download the feed as required m Publishes the generated media feeds to the FTP site every 90 seconds on election night and every 15 minutes in the post election period Each medi
71. kely that this type of user will have a sophisticated system and will in general rely on AEC calculations and aggregations Election results to division level Count progress to division level N A Standard Verbose 3 6 3 3 Information Resellers Information Resellers This type of user will repackage the election results feed for use by other organisations The user will almost certainly have an election results IT system Their system may use predictive techniques other than those used by the AEC It is likely that this type of user will parse the data in the feed and load it into their custom application Election results to division level Count progress to division level Standard Preload Standard Light 3 6 3 4 Radio Broadcasters Radio Broadcasters This type of user may broadcast short focused election updates in between regular programming It is unlikely that this type of user will have an election IT system and therefore will in general rely on AEC calculations and aggregations Election results to division level Count progress to division level N A Standard Verbose Page 15 Media Feed User Guide Version 3 1 3 6 3 5 Print and Online Media Print and Online Media This type of user may publish comprehensive election results and information in either newspapers magazines or online It is unlikely that this type of user will have an election IT system and will therefore rely on AEC calculations a
72. l xal xal xal xal AddressLine AddressLine AddressLine AddressLine AddressLine AddressLine ype Premises gt Origin Energy Type AddressLinel Ground Floor lt xal AddressLine gt Type AddressLine2 1 King William Type Suburb gt ADELAIDE lt xal AddressLine gt Type State gt SA lt xal AddressLine gt Type Postcode gt 5000 lt xal AddressLine gt lt xal AddressLines gt eml Address Page 41 AEC Media Feed User Guide Version 3 1 I eml PhysicalLocation PollingPlaceIdentifier Id 6648 Name Adelaide Adelaide lt WheelchairAccess gt Full lt WheelchairAccess gt lt PollingPlace gt 6 5 3 Estimated Message Size Electoral Event XML File Size General Election 5 MB General Election including Referendum 5 MB House of Representatives By election 20 KB Referendum 5MB 6 6 Senate Group Voting Tickets Message This message contains the list of Senate Groups and the Group Voting Ticket s for each Senate Group 6 6 1 Message Schema The message is based on the XML schema aec mediafeed groupvotingtickets v3 0 xsd attributes MediaFeedStructure EJ P MessageLanguage type xs language MessageGenerator oge Gerestersiucure d Comment descri ing your root element emitventdentiter J EventidentifierStructure T SenateGroupVotingTickets Bp d type Senat
73. l structured as follows eml message number gt lt message name gt lt transaction id xml where message number is an identifying number of an EML message message name is event candidates count or results transaction id is a unique number identifying an election An example for the 2004 election might be Page 22 AEC Media Feed User Guide Version 3 1 eml 230 candidates 12246 xml 5 1 2 AEC Messages The AEC media feed message file names are all structured as follows aec mediafeed lt message type gt lt granularity gt lt verbosity gt lt transaction id gt xml where lt message type gt is groupvotingtickets pollingdistricts or results lt granularity gt is detailed or standard for message type results lt verbosity gt is light lightprogress preload or verbose for message type results lt transaction id gt is a unique number identifying an election An example for the 2004 election might be aec mediafeed results detailed light 12246 xml 5 2 White space and Formatting All XML messages in all feed types are generated with white space and formatting This ensures all messages are human readable 5 3 Schema Documentation 5 3 1 Election Mark up Language EML Content in this section has been sourced from the following EML 5 0 documentation m v5 0 Process and Data Requirements pdf m v5 0 Schema Descriptions pdf m v5 0 Data Dictionary xls The full EML documentation can be fo
74. ma in the file aec mediafeed results v3 0 xsd 6 1 3 Example XML A portion of the Preload Results message for the 2004 Federal Election is shown below xml version 1 0 encoding utf 8 MediaFeed Id 0f060b5f elcl 4elf 9db3 af311c36be4b Created 2006 12 20T17 05 48 SchemaVersion 3 EmlVersion 5 xmlns http www aec gov au xml schema mediafeed xmlns eml urn oasis names tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigf xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts Page 26 AEC Media Feed User Guide Version 3 1 xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed resul ts v3 0 xsd ManagingAuthority eml Author Commissionc eml ManagingAut ityIdentifier Id AEC gt Australian Electoral AuthorityIdentifier hority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environmen t gt DEV lt Environment gt lt Site gt Primary lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x lt Version gt 6 64 lt Platform gt 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2006 11 20T10 50 42 gt e28bc89e 180d 4520 9f cb 8c728d3d0864 lt Cycle gt Results Upda
75. name and Party details are not included in the Light message 9 6 1 1 Verbose Candidate eml CandidateIdentifier Id 15421 gt lt eml CandidateName gt ELLERMAN Sue lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 37 ShortCode GRN gt eml RegisteredName The Greens eml RegisteredName eml AffiliationIdentifier lt BallotPosition gt 1 lt BallotPosition gt lt Elected Historic false gt false lt Elected gt lt Incumbent Notional false gt false lt Incumbent gt lt Votes Historic 0 Percentage 10 17 Swing 3 92 Mat chedHistoric 6268 gt 10243 lt Votes gt lt VotesByType gt lt Votes Type Ordinary Historic 0 Percentage 9 82 Swing 3 66 gt 7687 lt Votes gt Votes Type Absent Historic 0 Percentage 16 24 Swing 5 21 gt 336 lt Votes gt Votes Type Provisional Historic 0 Percentage 13 99 Swing 8 1 gt 141 lt Votes gt Votes Type PrePoll Historic 0 Percentage 10 88 Swing 4 78 gt 1713 lt Votes gt Votes Type Postal Historic 0 Percentage 10 19 Swing 5 3 gt 366 lt Votes gt lt VotesByType gt lt Candidate gt 9 6 1 2 Light lt Candidate gt eml CandidateIdentifier Id 14756 gt lt BallotPosition gt 1 lt BallotPosition gt lt Elected gt false lt Elected gt lt Votes MatchedHistoric 0 gt 2067 lt Votes gt lt VotesByType gt lt Votes Type Ordinary gt 1719 lt Votes gt lt Votes Type Absent gt 35 lt
76. names contest names historical votes aggregated votes votes calculations and anylsis information Indicates the granularity of information supplied in the Results message Results For an electoral event j eml Eventlidentifier TI Messages e Generated by XmlSpy www altova co Cycle Created 2006 11 20T10 Results Updated 2004 12 10T158 amp 35 46 Phase ElectionNight Verffosity Verbose Granularity Standard eml EventIdentifier Id 12246 gt eml EventName 2004 Federal Electio eml EventIdentifier Election Updated 2004 11 26T14 36 56 gt eml ElectionIdentifier Id H gt eml ElectionName House of Representatives Election lt eml ElectionName gt lt eml ElectionCategory gt House lt eml ElectionCategory gt eml ElectionIdentifier Page 81 AEC Media Feed User Guide Version 3 1 9 3 How can determine if any results have changed since the last feed The Results element of the Results message contains the Updated attribute This indicates the most recent date and time that any results for the electoral event were updated Indicates the date and time that the results for the ewent were last updated IF the attribute is not supplied no results have been returned Indicates the phase of the electoral event For example Election Night Post Election or Final Results Indicates if the message contains candidate names candidate affiliations polling place names conte
77. nate Election lt eml ElectionName gt lt eml ElectionCategory gt Senate lt eml ElectionCategory gt eml ElectionIdentifier Contests Contest eml ContestIdentifier Id ACT gt eml ContestName Australian Capital Territory lt eml ContestName gt eml ContestIdentifier Group GroupIdentifier Id 628 lt Ticket gt A lt Ticket gt lt GroupName gt Australian Progressive Alliance lt GroupName gt GroupIdentifier Candidate eml CandidateIdentifier Id 14279 gt eml CandidateName JOLLEY Jeannette lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 1126 ShortCode APA gt eml RegisteredName Australian Progressive Alliance lt eml RegisteredName gt eml AffiliationIdentifier Candidate Candidate eml CandidateIdentifier Id 14284 gt eml CandidateName DEEBANK Ryan lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 1126 ShortCode APA gt eml RegisteredName Australian Progressive Alliance lt eml RegisteredName gt eml AffiliationIdentifier Candidate GroupVotingTicket TicketNumber 1 gt Candidate eml CandidateIdentifier Id 14279 gt eml CandidateName JOLLEY Jeannette lt eml CandidateName gt eml CandidateIdentifier eml AffiliationIdentifier Id 1126 ShortCode APA gt eml RegisteredName Australian Progressive Alliance lt eml RegisteredName gt eml Affiliation
78. nce Results House Two Candidate Preferred Results House Two Party Preferred Results Senate Quota Senate Candidate and Group First Preference Results Referendum Results Historic and matched historic votes 7 1 2 Message Granularity 7 1 2 1 Standard Granularity The standard granularity message contains significantly less information and is significantly smaller than the detailed message The Standard granularity results message services the needs of most users 7 1 2 2 Detailed Granularity The detailed granularity Results message contains significantly more information and is much larger in size than the standard granularity Results message The detailed granularity Results message will be used by those organisations that have specialised requirements or complex predictive and analytical IT systems Page 48 Media Feed User Guide Version 3 1 7 1 2 3 Comparison Matrix House candidate results at the Division level Y Y House candidate results at the Polling Place level N Ne Senate candidate and group results at the State level Y Y Referendum proposal results at the Division level Y Y Please Note The Detailed Light Progress Results message contains count progress information at the polling place level however it does not contain candidate results at the polling place level 7 1 3 Message Verbosity The AEC Results message is generated in four different verbosities all of which validate against the same XML schema
79. nd aggregations It is likely the user will simply take the feed and transform it into a format suitable for publishing Election results to division level Count progress to division level N A Standard Verbose Page 16 Media Feed User Guide Version 3 1 4 Feeds All feeds are accessible from the media feed FTP site and are in ZIP format 4 1 Compression XML messages a feed are compressed using the ZIP technology before publishing Where appropriate a number of message files are compressed together into a single ZIP file 4 2 Media feed file naming convention The media feed file names are all structured as follows aec mediafeed lt granularity gt lt verbosity gt lt transaction id gt lt generation timestamp gt zip where lt granularity gt is detailed or standard lt verbosity gt is eml light lightprogress preload or verbose lt transaction id gt is a unique number identifying an election lt generation timestamp gt is in the form YYYYMMDDHHMMSS An example for the 2004 election might be aec mediafeed detailed light 12246 20041012202444 zip 4 3 Feed Granularity Following consultation two distinct groups of users have emerged m Users that are interested in election results and or count progress at a polling district Division level This group for performance reasons does not wish for the inclusion of polling place count progress and or results in the feed m Users who are interes
80. ns each candidate s name address optional affiliation party and other information In the AEC media feed system this message schema will be used to package the following information m List of Candidates for the House of Representatives m List of Candidates for the Senate The AEC media feed system generates a single candidate list message that will contain the list of candidates for all elections House of Representatives and Senate or just House of Representatives for a by election Page 32 Media Feed User Guide Version 3 1 6 3 2 Message Schema The message is based on the XML schema in the file 230 candidatelist v5 0 xsd __jaEventidentifier EventidentifierStructure Electionidentifier ES ElectionidentifierStructure Contestldentifier ContestidentifierStructure Continued Below EH AffiliationldentifierStructure CandidateList EI AffiliationStructure EJ derivedBy Generated by XmISpy www altova com Page 33 AEC Media Feed User Guide Version 3 1 itype YesNoType use optional candidateldentifier type CandidateldentifierStructure 1 CandidateFulllame E PersonNameStructure CandidateStructure E E Affiliation type AffiliationStructure LogoStructure J 1 Proposalltem type ProposalltemStructure Generated by XmlSpy www altova com Page 34 AEC Medi
81. ocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed results v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Site gt PARKES lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2007 11 24T20 00 24 gt 7dc03687 2b41 47 5 b4a6 b0bf 4ca60bcf lt Cycle gt 9 2 How can determine if the message was generated on Election Night The Results element of the Results message contains the Phase attribute This indicates the phase in the election period when the message was generated The Phase attribute can have one of the following values ssueOfWrit CloseOfRolls NominationsLocked Preload PreloadLocked ElectionNight PostElection or FinalResults Page 80 AEC Media Feed User Guide Version 3 1 E attributes Indicates the date and time that the results For the ewent were last updated IF the attrib i Indicates the phase of the electoral ewent For exarnple Election Night Post Election or Final Results Indicates if the message contains candidate names candidate affiliations polling place
82. prior to the election The first preload feed will be available on the Monday or Tuesday in the week after the close of nominations and updated in the week before the election 4 4 2 Verbose Feed This feed contains up to date election results and information The feed contains static data such as candidate names and dynamic data such as votes The verbose feed also contains calculated results like swings and aggregated results to the state and national level This feed is suitable for users who have their own IT system and who may or may not have pre loaded data and is also suitable for those users who do not have an IT system and simply wish to transform the XML file into another format 4 4 2 1 Messages The verbose feed will contain the following messages m Verbose Results Message Page 18 Media Feed User Guide Version 3 1 4 4 2 2 Cycle Every 90 seconds on election night and every 15 minutes in the post election period 4 4 3 Light Feed This feed contains up to date election results and information The feed contains only dynamic data like votes The light feed does not contain calculated results like swings or aggregated results This feed is only suitable for users who have their own IT system and have pre loaded data using the Preload feed 4 4 3 1 Messages The light feed will contain the following messages m Light Results Message 4 4 3 2 Cycle Every 90 seconds on election night and every 15 minutes in the post
83. rbose messages m Verbose provide all static and dynamic information 3 3 Media Feed FTP Site 3 3 1 URL To access the media feed system for a Federal Election use the following URL ftp mediafeed aec gov au Page 11 Media Feed User Guide Version 3 1 Please Note This URL is available only during an election period from election night onwards 3 3 2 Test Environment Comprehensive test files for a number of elections are available at the media feed test environ ment To access the test environment for the media feed system use the following URL ftp mediafeedtest aec gqov au Please Note This URL is available at all times however as a security measure it is disabled on election night 3 3 3 Folder Structure The folder structure of the media feed FTP site is shown below E 5 amp 3 ftp mediafeed aec gov au m C 12246 Detailed C Light C LightProgress Preload verbose Standard Light Preload 3 verbose All feeds for a particular electoral event will be placed in a single directory The directory will be identified using the unique ID of the electoral event For example the directory name for the 2004 Federal Election is 12246 The FTP site may contain multiple directories to support concurrently running electoral events For example two by elections running on the same weekend The AEC publishes feeds with either standard or detailed granularity Standard gr
84. rstName Type BallotPaper gt Dennis lt xnl FirstName gt xnl LastName SLAPE xnl LastName xnl PersonName CandidateFullName lt Gender gt male lt Gender gt lt QualifyingAddress AddressType Residential gt lt xal AddressLines gt lt xal AddressLine Type AddressLinel gt 5 Monmouth Rd lt xal AddressLine gt lt xal AddressLine Type Suburb gt WESTBOURNE PARK lt xal AddressLine gt lt xal AddressLine Type State gt SA lt xal AddressLine gt lt xal AddressLine Type Postcode gt 5041 lt xal AddressLine gt lt xal AddressLines gt lt QualifyingAddress gt Contact MailingAddress AddressType Postal gt xal AddressLines xal AddressLine Type AddressLinel gt 5 Monmouth Rd xal AddressLine xal AddressLine Type Suburb gt WESTBOURNE PARK xal AddressLine xal AddressLine Type State gt SA lt xal AddressLine gt xal AddressLine Type Postcode gt 5041 lt xal AddressLine gt lt xal AddressLines gt lt MailingAddress gt lt Email gt sa familyfirst org au lt Email gt lt Telephone gt lt Number gt 04 0579 5682 lt Number gt lt Telephone gt lt Telephone gt lt Number gt 04 0579 5682 lt Number gt lt Telephone gt lt Telephone Mobile yes gt lt Number gt 0405 795 682 lt Number gt lt Telephone gt lt Contact gt lt Affiliation gt lt AffiliationIdentifier Id 1129 ShortCode FFP gt lt RegisteredName gt Family First Party lt RegisteredName gt
85. s weight The number of votes for matched polling place projections For example projected TCP The number of hi for this type of n for the First Preferen that have been returned during this andidate al Event included in lightweight f VotesStructure VotesGroup Group of elements used to represent v and sv Not included in light feeds the polling places been retumed during this election This figure can used for matched po place pn example projected wote type tel the First Pr polling pla that have been retumed during th election Only used for Two Candidate Preferred results in a Federal Event QuotaProportion Where a quota of votes is in a Federal event Not inclu in liqhtweight feeds Generated by 5 www altova com 52 AEC Media Feed User Guide Version 3 1 Australian Electoral Commission 7 1 4 2 House Element attributes date and time were last k e attribute is not supplied it indicates that results have not b The date and time was delcared for the TF the attribute is not supplied the contest has not projected using m historic polling place votes IF the attribute is not supplied assume results are not projected in which the c fi election this relat to the federal division For st
86. s and information using a set of XML messages based on the Election Mark up Language EML The EML standard defines numerous message schemas file formats that can be used during many different phases of the election process Only a subset of these messages are relevant to the media feed system Where applicable the following EML based messages are generated as part of the media feed Election Event Message EML message 110 Candidate List Message EML message 230 Referendum Options List Message EML message 630 Count Message EML message 510 Result Message EML message 520 Polling Districts Message Custom AEC message based on EML Senate Group Voting Tickets Message Custom AEC message based on EML Ballot Paper Message Custom AEC message based on EML Preload Results Message Custom AEC message based on EML Verbose Results Message Custom AEC message based on EML Lightweight Results Message Custom AEC message based on EML Lightweight Results Message with polling place count progress Custom AEC message based on EML Please Note The purpose of this section is to provide a basic understanding of the messages involved in the AEC media feed system However to completely understand the content of each message it is necessary to refer to the EML and AEC XML schema documentation provided as supporting files to this documentation 5 1 Message file naming convention 5 1 1 EML Messages The EML media feed message file names are al
87. s tc evs schema eml xmlns ds http www w3 0rg 2000 09 xmldsigi xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 110 electionevent v5 0 xsd SchemaVersion 5 Id ec65949f 67ae 48e6 a404 206f3b7f12ae TransactionId ac3e41d8 5b5f 4801 ade7 1Db332090 09 TransactionId ElectionEvent lt Event Identifier Id 13745 gt lt EventName gt 2007 Federal Election lt EventName gt lt EventIdentifier gt lt ManagingAuthority gt lt AuthorityIdentifier Id AEC gt Australian Electoral Commission lt AuthorityIdentifier gt AuthorityAddress AddressType Office xal AddressLines xal AddressLine Type AddressLinel gt West Block Offices lt xal AddressLine gt xal AddressLine Type AddressLine2 Queen Victoria Terrace lt xal AddressLine gt lt xal AddressLine Type Suburb gt Parkes lt xal AddressLine gt lt xal AddressLine Type State gt ACT lt xal AddressLine gt lt xal AddressLine Type Postcode gt 2600 lt xal AddressLine gt lt xal AddressLines gt lt AuthorityAddress gt lt ManagingAuthority gt lt Election gt lt ElectionIdentifier Id H gt lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt lt ElectionI
88. ssage BIO 74 8 6 1 Message Schema Changes eene nennen 74 8 62 Example XML eere interrete gedd sua age 74 8 7 Result Message EML message b 0 75 8 7 1 Message Schema Changes eene 76 8 7 2 ExampleXML rm 76 8 8 eve NINE 77 9 Frequently Asked Questions J nennen nnn 78 9 1 Do all AEC messages have the same 78 9 2 How can I determine if the message was generated on Election Night 80 9 3 How can determine if any results have changed since the last feed 82 Page5 AEC Media Feed User Guide Version 3 1 9 4 How can l determine if a division has gone maverick on election night 83 9 5 Why am l unable to see TCP results for a 85 9 6 What are the main differences between the light and verbose messages 86 9 6 1 Candidates 4 86 9 6 2 Vote elements eee Eee time 86 9 7 How can l determine if a Division has been declared 87 9 7 1 Declared Contest 87 9 7 2 Undeclared Contest aciei IQ Uq aba qasisqa 88 9 8 How determine the progress of the
89. st names historical wotes aggregated votes votes calculations and anylsis information Indicates the granularity oF information supplied in the message Results For an electoral event eml Eventidentifier Election j Messages Generated by XmISpy www altova com Page 82 Media Feed User Guide Version 3 1 reated 2006 11 20T10 50 42 gt e4 s Updated 2004 12 10T15 35 46 Standard gt RLIdentifier Id 12246 gt Boc89e 180d 4520 9fcb 8c728d3d0864 lt Cycle gt ase ElectionNight Verbosity Verbose ection lt eml EventName gt lt eml EventIdentifier gt Election Updated 2004 11 26T14 36 56 gt lt eml ElectionIdentifier Id H gt lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier 9 4 How can determine if a division has gone maverick on election night The TwoCandidatePreferred element of the MediaFeed message contains the Maverick attribute This indicates if the incorrect TCP candidates were selected by the AEC for the initial TCP count E attributes Indicates the date and time these results were last updated If the attribute is not supplied it indicates that results have not been retumed Indicates that the Two Candidate Preferred results are restricted at this time and are unavailable The AEC does not release the TCP candidates
90. stimated Message Size Electoral Event XML File Size General Election 370 KB General Election including Referendum 400 KB House of Representatives By election 7 KB Referendum 3 KB Page 70 AEC Media Feed User Guide Version 3 1 8 What s new in Version 3 0 8 1 Introduction The AEC released Version 3 0 of the Media Feed system prior to the 2010 Federal Election to support a legislation change that allowed a pre poll vote cast within the elector s own division to be treated as an ordinary vote and counted on Election night In general the changes contained in Version 3 0 were minor and the message XML schema remained largely unchanged compared to that used during the 2007 Federal Election In many cases consumers of the Media Feed did not even need to change their parsing and or transformation software to use Version 3 0 during the 2010 Federal Election 8 2 Election Mark up Language EML Version 5 0 The media feed messages are now based on the most recent publication of the Election Mark up Language EML international standard EML version 5 0 8 3 XML Schema Files The media feed messages are now based on a new set of XML schema files which are listed below aec mediafeed ballotpapers v3 0 xsd aec mediafeed core v3 0 xsd aec mediafeed groupvotingtickets v3 0 xsd aec mediafeed pollingdistricts v3 0 xsd aec mediafeed results v3 0 xsd 8 4 Polling place classification for pre poll voting centres A new polling place classif
91. t lt CandidateIdentifier gt lt Candidate gt lt AffiliationIdentifier Id 1181 ShortCode CEC gt lt RegisteredName gt Citizens Electoral Council lt RegisteredName gt lt AffiliationIdentifier gt ValidVotes 341 ValidVotes Selection RejectedVotes ReasonCode Informal gt 969 lt RejectedVotes gt TotalVotes Contest Page 66 Media Feed User Guide Version 3 1 7 2 4 Estimated Message Size Electoral Event XML File Size General Election 370 KB General Election including Referendum 400 KB House of Representatives By election 7 KB Referendum 3 KB 7 3 EML Result Message 520 7 3 1 Overview This message is used to communicate the result of an election using the EML standard This message indicates which candidates have been elected and which referendum options have been passed Page 67 Media Feed User Guide Version 3 1 7 3 2 Message Schema The message is based on the XML schema in the file 520 result v5 0 xsd j Contestldentifier type ContestidentifierStructure Affiliationldentifier Generated by www altova com 7 3 3 Example XML A portion of the EML Results message for the 2007 Federal Election is shown below xml version 1 0 encoding utf 8 lt EML xmlns urn oasis names tc evs schema eml xmlns ds xmlns xal xmlns xnl http www w3 org 2000 09
92. ted 2004 12 10T15 35 46 Phase Preload Verbosity Preload Granularity Standard gt eml EventIdentifier Id 12246 gt lt eml EventName gt 2004 Federal Election lt eml EventName gt eml Event Identifier Election Updated 2004 11 26T14 36 56 gt eml ElectionIdentifier Id H gt lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml Ele House ctionIdentifier Contests Contest eml ContestIdentifier Id 101 gt eml ContestName Canberra eml ContestName eml ContestIdentifier Po llingDistrictIdentifier Id 101 ShortCode CANB gt lt Name gt Canberra lt Name gt lt StateIdentifier Id ACT gt lt PollingDistrictIdentifier gt Enrolment CloseOfRolls 108369 Historic 108959 gt 109476 lt Enrolment gt FirstPreferences PollingPlacesReturned 0 PollingPlacesExpected 39 Candidate eml CandidateIdentifier Id 15421 lt eml CandidateName gt ELLERMAN Sue lt eml CandidateName gt lt eml CandidateIdentifier gt lt eml AffiliationIdentifier Id 37 ShortCode GRN gt eml RegisteredName The Greens lt eml RegisteredName gt eml AffiliationIdentifier lt BallotPosition gt 1 lt BallotPosition gt MatchedHistoric 0 gt 0 lt Votes gt Swing 0 gt 0 lt Vo Swing 0 gt 0 lt Vo Swing 0 gt 0 lt Vo Swing 0 gt 0 lt Vo Swing 0 gt 0 lt
93. ted in election results and or count progress at the polling place level This group has a requirement for the inclusion of polling place count progress and or results in the feed to assist their analytical and predictive systems To service the needs of these two user groups the AEC publishes the media feed with two distinct levels of granularity standard and detailed Page 17 Media Feed User Guide Version 3 1 4 4 Standard Granularity Feeds Because standard granularity feeds contain significantly less information they are much smaller in size than detailed granularity feeds The standard granularity feeds service the needs of most users 4 4 1 Preload Feed Users with their own election results IT system may use the Preload feed The Preload feed will allow this type of user to pre load static election information like candidates names before the election Use of this feed facilitates the use of the Light feed during the election period 4 4 1 1 Messages The preload feed contains the following XML messages where appropriate Preload Results Message EML Election Event Message EML 110 Message EML Candidate List Message EML 230 Message Referendum Options List Message EML 630 Message only available for electoral events with a referendum or plebiscite Polling Districts Message Federal Divisions Senate Group Voting Ticket Message AEC and EML XML Schema Files 4 4 1 2 Cycle The preload feed is published twice
94. tion Use of this feed will then facilitate the use of the Light or LightProgress feed during the election period 4 5 1 1 Messages The Preload feed will contain the following messages where appropriate Preload Results Message Election Event Message EML 110 Candidate List Message EML 230 Referendum Options List Message EML 630 only available for electoral events with a referendum or plebiscite Polling Districts Message Senate Group Voting Ticket Message AEC and EML XML Schema Files 4 5 1 2 Cycle The preload feed will be published once or twice prior to the election The first preload feed will be available on the Monday or Tuesday in the week after the close of nominations and again in the week before the election 4 5 2 Verbose Feed This feed contains up to date election results and information The feed contains static data such as candidate names and dynamic data such as votes The verbose feed also contains calculated results such as swings and aggregated results to the state and national level This feed is suitable for users who have their own IT system and who may or may not have pre loaded data It is also suitable for those users who do not have an IT system and simply wish to transform the XML file into another format 4 5 2 1 Messages The verbose feed contains the following message m Verbose Results Message 4 5 2 2 Cycle Every 90 seconds on election night and every 15 minutes in the post election period
95. ttp www w3 org 2000 09 xmldsig xmlns xal urn oasis names tc ciq xsdschema xAL 2 0 xmlns xnl urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 org 2001 XMLSchema instance xs schemaLocation http www aec gov au xml schema mediafeed Schema AEC aec mediafeed results v3 0 xsd ManagingAuthority eml AuthorityIdentifier Id AEC gt Australian Electoral Commission eml AuthorityIdentifier ManagingAuthority lt MessageLanguage gt en lt MessageLanguage gt lt MessageGenerator gt lt Name gt Virtual Tally Room lt Name gt lt Environment gt DEV lt Environment gt lt Site gt PARKES lt Site gt lt Server gt DEV01 lt Server gt lt Platform gt x64 lt Platform gt lt Version gt 6 0 6 5754 lt Version gt lt MessageGenerator gt Cycle Created 2006 11 20T10 50 42 gt e28bc89e 180d 4520 9f cb 8c728d3d0864 lt Cycle gt Results Updated 2004 12 10T15 35 46 Phase Preload Verbosity Verbose Granularity Detailed gt lt eml EventIdentifier Id 12246 gt lt eml EventName gt 2004 Federal Election lt eml EventName gt lt eml EventIdentifier gt Election Updated 2004 11 26T14 36 56 gt Page 60 AEC Media Feed User Guide Version 3 1 eml ElectionIdentifier Id H gt lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier Ho
96. ults Updated 2004 12 10T15 35 46 Phase Preload Verbosity Light Granularity Standard eml EventIdentifier Id 12246 lt eml EventName gt 2004 Federal Election lt eml EventName gt lt eml EventIdentifier gt Election Updated 2004 11 26T14 36 56 gt lt eml ElectionIdentifier Id H gt lt eml ElectionName gt House of Representatives Election lt eml ElectionName gt eml ElectionCategory House eml ElectionCategory eml ElectionIdentifier House Contests Contest Updated 2004 10 26T11 01 59 Declared 2004 10 28T00 00 00 gt lt eml ContestIdentifier Id 101 gt lt eml ContestName gt Canberra lt eml ContestName gt lt eml ContestIdentifier gt lt Enrolment gt 109476 lt Enrolment gt FirstPreferences Updated 2004 10 26T11 25 05 PollingPlacesReturned 39 PollingPlacesExpected 39 gt lt Candidate gt eml CandidateIdentifier Id 15421 gt lt BallotPosition gt 1 lt BallotPosition gt lt Elected gt false lt Elected gt lt Votes MatchedHistoric 6268 gt 10243 lt Votes gt lt VotesByType gt lt Votes Type Ordinary gt 7687 lt Votes gt lt Votes Type Absent gt 336 lt Votes gt lt Votes Type Provisional gt 141 lt Votes gt Votes Type PrePol1 gt 1713 lt Votes gt lt Votes Type Postal gt 366 lt Votes gt lt VotesByType gt lt Candidate gt 7 1 5 3 LightProgress lt PollingPlaces gt lt PollingPlace Updated 2004 10 25T13 38 24 gt PollingPlaceIdentifier Id
97. und at the following website OASIS Election and Voter Services Technical Committee http www oasis open org committees tc home php wg abbrev election Please refer to these documents for more information on EML 5 3 2 AEC Media Feed Message Schema Full technical schema documentation for the AEC Media Feed messages can be downloaded from the AEC website at the following address http www aec gov au media mediafeed index htm Please refer to these documents for more information on the AEC media feed schema Page 23 AEC Media Feed User Guide Version 3 1 Example message files can be accessed at ftp mediafeedtest aec gov au 5 4 Understanding the XML schema 5 4 1 XML Software Engineering Tools Because of its complex nature the AEC recommends the use of an XML software engineering tool when investigating the XML schema The Media Feed XML schema were designed and developed using XMLSpy http www altova com 5 4 2 Reading schema diagrams in this document The schema diagrams in this document were created using XMLSpy The following is a guide to their interpretation The prefix xs denotes the XML schema namespace http www w93 org 2001 XMLSchema The diagram below represents a simple XML schema The element is crossed out as the restriction is to forbid its occurrence i Bstructure A data type in blue shows a derivation in this case a restriction Indicates that this isa choice Indic
98. until pm election night Before this time all TCP results are restricted If the attribute is not supplied it indicates that recul TwoCandidatePreferredStructure Indicates that the incorrect cand dates have been Complex type to represent TCP results ted for candidate prefemed count In this case no TCP results are available If the attribute is not supplied it indicates that results are not maverick two 2 5 a z The Two Candidate 2 Preferred results is only included when both the Maverick attribute is False and the Restricted attribute is False Please note CandidateName KnownAs and AffiliationIdentifier are not included in lightweight feeds Generated by XmIlSpy www altova com Page 83 AEC Media Feed User Guide Version 3 1 TwoCandidatePreferred Updated 2004 10 28T1 PollingPlacesReturned 47 PollingPlacesExpec 7 09 Maverick true d 47 Page 84 Media Feed User Guide Version 3 1 9 5 Why am I unable to see TCP results for a division s The AEC does not display TCP results for a division under two circumstances 1 The incorrect TCP candidates were selected by the AEC for the initial TCP count In this case the Maverick attribute of the TwoCandidatePreferred element is set to the value of true 2 The AEC does not release the TCP candidate selections until 6 00pm on election night Before this time the Restricted attribute of the TwoCandidatePref
99. use Contests Contest Updated 2004 10 26T11 01 59 Declared 2004 10 28T00 00 00 gt eml ContestIdentifier Id 101 gt eml ContestName Canberra eml ContestName eml ContestIdentifier lt PollingDistrictIdentifier Id 101 ShortCode CANB gt lt Name gt Canberra lt Name gt lt StateIdentifier Id ACT gt lt PollingDistrictIdentifier gt lt Enrolment CloseOfRolls 108369 Historic 108959 gt 109476 lt Enrolment gt FirstPreferences Updated 2004 10 26T11 25 05 PollingPlacesReturned 39 PollingPlacesExpected 39 gt lt Candidate gt lt eml CandidateIdentifier Id 15421 gt lt eml CandidateName gt ELLERMAN Sue lt eml CandidateName gt lt eml CandidateIdentifier gt lt eml AffiliationIdentifier Id 37 ShortCode GRN gt eml RegisteredName The Greens lt eml RegisteredName gt lt eml AffiliationIdentifier gt lt BallotPosition gt 1 lt BallotPosition gt lt Elected Historic false gt false lt Elected gt lt Incumbent Notional false gt false lt Incumbent gt lt Votes Historic 0 Percentage 10 17 Swing 3 92 MatchedHistoric 6268 gt 10243 lt Votes gt lt VotesByType gt lt Votes Type Ordinary Historic 0 Percentage 9 82 Swing 3 66 gt 7687 lt Votes gt lt Votes Type Absent Historic 0 Percentage 16 24 Swing 5 21 gt 336 lt Votes gt lt Votes Type Provisional Historic 0 Percentage 13 99 Swing 8 1 gt 141 lt Votes gt Votes Type PrePoll Histor
100. xmldsig urn oasis names tc ciq xsdschema xAL 2 0 urn oasis names tc ciq xsdschema xNL 2 0 xmlns ts urn oasis names tc evs schema eml ts xmlns xs http www w3 0org 2001 XMLSchema instance xs schemaLocation urn oasis names tc evs schema eml Schema EML 520 result v5 0 SchemaVersion 5 Id cd2a4faa efa5 45d7 b9a4 9770e557fa680 Transac Result tionId 7dc03687 2b41 47f 5 b4a6 b0O0bf4ca60bcf TransactionId lt Event Identifier Id 13745 gt lt EventName gt 2007 Federal Election lt EventName gt lt EventIdentifier gt lt Election gt lt ElectionIdentifier Id H gt Page 68 AEC Media Feed User Guide Version 3 1 lt ElectionName gt House of Representatives Election lt ElectionName gt lt ElectionCategory gt House lt ElectionCategory gt lt ElectionIdentifier gt lt Contest gt lt ContestIdentifier Id 179 ShortCode ADEL gt lt ContestName gt Adelaide lt ContestName gt lt ContestIdentifier gt lt Selection gt lt Candidate gt CandidateIdentifier Id 18003 gt lt CandidateName gt SOLLY Peter lt CandidateName gt lt CandidateIdentifier gt lt Candidate gt lt AffiliationIdentifier Id 37 ShortCode GRN gt lt RegisteredName gt The Greens lt RegisteredName gt lt AffiliationIdentifier gt lt Elected gt no lt Elected gt lt Selection gt lt Selection gt lt Candidate gt CandidateIdentifier Id 17694 gt lt CandidateName gt ELLIS Kat

Download Pdf Manuals

image

Related Search

Related Contents

Franke Pilatus  Hamilton Beach 52655 User's Manual    Samsung DVD-VR355 User's Manual  télécharger le cahier - Parc Naturel Régional du Vercors  Samsung NS0244HREA Manuel de l'utilisateur    Manual de Instrucciones  製品カタログ - 太洋無線株式会社  

Copyright © All rights reserved.
Failed to retrieve file