> [!NOTE]
> **Note:** This entity is only used in committee feeds. It isn't used with pre-election, election, or officeholder feeds.

Use `Affiliation` to describe the affiliation of a political committee with a
[`Party`](https://developers.google.com/civics-data/reference/party) or a
[`Person`](https://developers.google.com/civics-data/reference/person). The
[`Affiliation`](https://developers.google.com/civics-data/reference/affiliation) element includes
`AffiliationCollection`, which contains the full set of Affiliation objects for
a given committee in the feed.

*** ** * ** ***

### Elements

The following table shows the elements for `Affiliation`:

> [!NOTE]
> **Note:** An `Affiliation` element must contain either a `PartyId` or a `PersonId` but not both.

| Element | Multiplicity | Type | Description |
|---|---|---|---|
| `EndDate` | 0 or 1 | `PartialDate` | The latest possible date in which a committee had this classification. If the affiliation is current, don't include this element. |
| `PartyId` | 0 or 1 | `IDREF` | The IDREF of the affiliated party. |
| `PersonId` | 0 or 1 | `IDREF` | The IDREF of the affiliated person. |
| `StartDate` | 0 or 1 | `PartialDate` | The earliest possible date in which a committee had this classification. If a start date is unknown, don't include this element. |

### Examples

### XML

```xml
      <Affiliation>
        <EndDate>2023-02-31</EndDate>
        <PartyId>par-00001</PartyId>
        <StartDate>2023-01-01</StartDate>
      </Affiliation>

      <Affiliation>
        <EndDate>2023-02-31</EndDate>
        <PersonId>per-00123</PersonId>
        <StartDate>2023-01-01</StartDate>
      </Affiliation>

      <Affiliation>
        <PersonId>per-00123</PersonId>
        <StartDate>2023-01-01</StartDate>
      </Affiliation>
      
```