Party

This element describes a political party and the metadata associated with them. These can also include “dummy” parties to indicate a type of contest (e.g., a Voter Nominated CandidateContest can use the PrimaryPartyIds field and a dummy Party object to indicate that the contest is a “Top-Two” primary).

Tag

Data Type

Required?

Repeats?

Description

Error Handling

Abbreviation

xs:string

Optional

Single

An abbreviation for the party name.

Color

HtmlColorString

Optional

Single

The preferred display color for the party, for use in maps and other displays.

ExternalIdentifiers

ExternalIdentifiers

Optional

Single

Other identifiers that link this party to other related data sets (e.g. a campaign finance system, etc).

IsWriteIn

xs:boolean

Optional

Single

Signals if this political party is one that is officially recognized by a local, state, or federal organization, or is a “write-in” in jurisdictions which allow candidates to free-form enter their political affiliation. If this field is not present then it is assumed to be false.

LeaderPersonIds

xs:IDREFS

Optional

Single

A reference of Person elements which are leaders of the Party.

LogoUri

xs:anyURI

Optional

Single

Web address of a logo to use in displays.

Name

InternationalizedText

Required

Single

The name of the party.

1<Party id="par0001">
2  <Abbreviation>REP</Abbreviation>
3  <Color>e91d0e</Color>
4  <IsWriteIn>false</IsWriteIn>
5  <LeaderPersonIds>per01</LeaderPersonIds>
6  <Name>
7    <Text language="en">Republican</Text>
8  </Name>
9</Party>

HtmlColorString

A restricted string pattern for a six-character hex code representing an HTML color string. The pattern is:

[0-9a-f]{6}