ElectionSpec.xml

From Scantegrity Wiki

Revision as of 19:42, 21 September 2009 by Pulpspy (talk | contribs) (Schema)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Due to a bug in our wiki, the code does not wrap. Until then, please view this page as "Printable." This can be done by clicking here (or by pressing CTRL p).

<< Back to Audit Specification

Sample file

<?xml version="1.0" encoding="ISO-8859-1" ?>
<electionSpecification version="0.1">
	<electionInfo id="PunchScan">
		<sections>
			<section id="0" possition="1">
				<questions>
					<question id="3" possition="4" typeOfAnswerChoice="one_answer" max_number_of_answers_selected="1">
						<answers>
							<answer id="1" possition="2" points="0.0"/>
							<answer id="0" possition="1" points="0.0"/>
						</answers>
					</question>
					<question id="2" possition="3" typeOfAnswerChoice="one_answer" max_number_of_answers_selected="1">
						<answers>
							<answer id="4" possition="5" points="0.0"/>
							<answer id="3" possition="4" points="0.0"/>
							<answer id="2" possition="3" points="0.0"/>						
							<answer id="1" possition="2" points="0.0"/>
							<answer id="0" possition="1" points="0.0"/>
						</answers>
					</question>
					<question id="1" possition="2" typeOfAnswerChoice="rank" max_number_of_answers_selected="4">
						<answers>
							<answer id="3" possition="4" points="0.0"/>
							<answer id="2" possition="3" points="0.0"/>
							<answer id="1" possition="2" points="0.0"/>
							<answer id="0" possition="1" points="0.0"/>
						</answers>
					</question>
					<question id="0" possition="1" typeOfAnswerChoice="rank" max_number_of_answers_selected="5">
						<answers>
							<answer id="4" possition="5" points="0.0"/>
							<answer id="3" possition="4" points="0.0"/>
							<answer id="2" possition="3" points="0.0"/>
							<answer id="1" possition="2" points="0.0"/>
							<answer id="0" possition="1" points="0.0"/>
						</answers>
					</question>
				</questions>
			</section>
		</sections>
	</electionInfo>
</electionSpecification>

Schema

  • element sections
Sections are an arbitrary delimiter that may be used in certain circumstances to partition the ballot (for example, when ballots contain difference races for different level of government). Since most multi-level elections require intermediate tallies of each precinct, this element is rarely used.
  • element questions
Each question on the ballot is given its own element.
  • element question
Each question must be given a sequential position beginning with 1, denoted by the possition [sic] attribute. Each question may be given a unique tag, id; a scoring protocol typeOfAnswerChoice which can be rank or one_answer (plurality); and a definition, max_number_of_answers_selected, of how many marks qualify a valid vote prior to being ruled an overvote.
  • element answers
Each candidate or answer is denoted by inside an answers element, and given its own element.
  • element answer
For each candidate or answer, an identifier attribute is provided (id) and a position attribute (possition [sic]). While the ID attribute is used as an index in this example, it will not necessarily be this way. Finally, the points attribute is depreciated and can be ignored.

Sample File

The sample file provided shows a specification for an election with 4 questions. The first question is a ranked choice with 5 answers; the second question is a ranked choice with 4 answers; the third question is a plurality choice 5 answers; and the fourth question is a plurality question with 2 answers.

The specific ballot being represented can be viewed in SampleBallot.pdf.

Audit Steps

Assuming this file has just become available, what audits are now possible using this file and previous files?

There are no audits necessary at this stage.