选举报告

使用 ElectionReport 作为根实体。它定义了与报告的状态和格式以及生成时间相关的项。

ElectionReport 包含以下主要元素:

Election 一样,ElectionReport 会将元素(Election 除外)的出现次数“封装”在容器元素中。这样,您就可以更轻松地在 XML 查看器和编辑器中操作实例文件。

有时,保留项(例如办公室或政党)的特定排序方案非常重要。在这种情况下,我们希望生成应用能够根据任何已有的排序方案定义这些元素。

元素

下表列出了 ElectionReport 的元素:

元素 多样性 类型 说明
CommitteeCollection 0 或 1 不适用 封装容器元素。Committee如需了解详情,请参阅 集合实体
DataSourceCollection 0 或 1 不适用 Wrapper element for DataSource 定义的封装容器元素。如需了解详情,请参阅 集合实体
Election 0 个或多个 Election 将选举与报告相关联。
ElectoralCommissionCollection 0 或 1 不适用 Wrapper element for ElectoralCommission 定义的封装容器元素。如需了解详情,请参阅 集合实体
ExternalIdentifiers 0 或 1 ExternalIdentifiers 将 ID 与报告相关联。
Format 1 ReportDetailLevel 提供报告的详细程度,例如是比赛 摘要还是选区级结果。
GeneratedDate 1 dateTime 标识选举报告的生成日期和时间。
GpUnitCollection 0 或 1 不适用 GpUnit 定义的封装容器元素。如需了解详情,请参阅 集合实体
Issuer 1 string 报告发布者的标识。
IssuerAbbreviation 0 或 1 string 报告发布者的缩写,例如要报告结果的 州或选区的缩写。
IsTest 0 或 1 boolean 指明报告是否为测试报告。如果此元素不存在,则默认值为 false
Notes 0 或 1 string 用于在报告中包含任意消息。
OfficeCollection 0 或 1 不适用 Office 定义的封装容器元素。如需了解详情,请参阅 集合实体
GovernmentBodyCollection 0 或 1 不适用 Wrapper element for GovernmentBody 定义的封装容器元素。如需了解详情,请参阅 集合实体
PartyCollection 0 或 1 不适用 封装容器元素。Party如需了解详情,请参阅 集合实体
PersonCollection 0 或 1 不适用 Wrapper element for Person 定义的封装容器元素。如需了解详情,请参阅 集合实体
SequenceStart 1 integer 报告在报告序列中的编号。此元素与 SequenceEnd 搭配使用,例如“1 of 1”“1 of 2”或“2 of 2”。以 1 开头。
SequenceEnd 1 integer 报告序列的上限。例如,如果只有一个报告,则为 1;如果序列中有两个报告,则为2(如果 序列中有两个报告)。
Status 1 ResultsStatus 选举报告的状态,例如选举前或 非官方。
TestType 0 或 1 string 测试类型的说明,例如选举前或逻辑和 准确性。
VendorApplicationId 1 string 生成选举 报告的供应商应用的标识符。例如,X-EMS version 3.1.a
VoterInformationCollection 0 或 1 不适用 Wrapper element for VoterInformation 定义的封装容器元素。如需了解详情,请参阅 集合实体

示例

XML

    <ElectionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <DataSourceCollection>
        <DataSource objectId="ds-1">…</DataSource>
      </DataSourceCollection>
      <Election>…</Election>
      <GpUnitCollection>
        <GpUnit objectId="ru-gpu0">…</GpUnit>
        <GpUnit objectId="ru-gpu1">…</GpUnit>
      </GpUnitCollection>
      <OfficeCollection>
        <Office objectId="off-0001a">…</Office>
      </OfficeCollection>
      <GovernmentBodyCollection>
        <GovernmentBody objectId="gb-0001a">…</GovernmentBody>
      </GovernmentBodyCollection>
      <PartyCollection>
        <Party objectId="par-001">…</Party>
        <Party objectId="par-002">…</Party>
      </PartyCollection>
      <PersonCollection>
        <Person objectId="per-001">…</Person>
        <Person objectId="per-002">…</Person>
      </PersonCollection>
      <Issuer>Example Data Provider</Issuer>
      <IssuerAbbreviation>EDP</IssuerAbbreviation>
      <Format>summary-contest</Format>
      <GeneratedDate>2013-11-05T14:25:28</GeneratedDate>
      <Status>unofficial-partial</Status>
      <VendorApplicationId>Hand-Generated v0.1</VendorApplicationId>
      <SequenceStart>1</SequenceStart>
      <SequenceEnd>1</SequenceEnd>
    </ElectionReport>