Country candidate list¶
This document explains the XML structure and its relations to the classes in Java. Provided below are the relations explained and an example structure.
The section titles represent the XML class that it is referring to, below that you will find the representing Java class with a link to the file.
This parser and its documentation are based on the candidate list with some minor changes. The changes are documented below, the rest of the documentation of the candidate list itself.
Example¶
<EML>
<TransactionId>1</TransactionId>
<ManagingAuthority>
<AuthorityIdentifier Id="CSB">
De Kiesraad
</AuthorityIdentifier>
</ManagingAuthority>
<IssueDate>2021-02-09</IssueDate>
<CandidateList>
<Election>
<!-- Election information-->
<ElectionIdentifier Id="TK2021">
<ElectionName>Tweede Kamer der Staten-Generaal 2021</ElectionName>
<ElectionCategory>TK</ElectionCategory>
<kr:ElectionDate>2021-03-17</kr:ElectionDate>
</ElectionIdentifier>
<Contest>
<!-- Contest information-->
<ContestIdentifier Id="9">
<ContestName>Amsterdam</ContestName>
</ContestIdentifier>
<!-- Affiliation (Election party) is an array (multiple parties in the document)-->
<Selection>
<!-- Election party information-->
<AffiliationIdentifier Id="1">
<RegisteredName>VVD</RegisteredName>
</AffiliationIdentifier>
</Selection>
<!-- Candidate information-->
<Selection>
<Candidate>
<CandidateIdentifier Id="1">
</CandidateIdentifier>
<CandidateFullName>
<xnl:PersonName>
<xnl:NameLine NameType="Initials">M.</xnl:NameLine>
<xnl:FirstName>Mark</xnl:FirstName>
<xnl:LastName>Rutte</xnl:LastName>
</xnl:PersonName>
</CandidateFullName>
<Gender>male</Gender>
<QualifyingAddress>
<xal:Locality>
<xal:LocalityName>'s-Gravenhage</xal:LocalityName>
</xal:Locality>
</QualifyingAddress>
</Candidate>
</Selection>
</Contest>
</Election>
</CandidateList>
</EML>
Affiliation¶
XML Example
<Selection>
<!-- Election party information-->
<AffiliationIdentifier Id="1">
<RegisteredName>VVD</RegisteredName>
</AffiliationIdentifier>
</Selection>
Class used:
ElectionParty
The AffiliationIdentifier and RegisteredName are used for this class.
Note: The candidates property from this class come from other classes listed below.
| Data field | Class field |
|---|---|
| AffiliationIdentifier#Id [Attribute] | id [Property] |
| RegisteredName [Value] | name [Property] |