recipient-country
=================
``iati-activities/iati-activity/recipient-country``
This is the reference page for the XML element ``recipient-country``.
.. index::
single: recipient-country
Definition
~~~~~~~~~~
A country that will benefit from this activity. If a specific
country is not known the recipient-region element should be
used instead. For geographical location, use the location
element.
Multiple countries and regions can be reported, in which case
the percentage attribute MUST be used to specify the share of
total commitments across all reported countries and regions.
The country can also be specified at transaction rather than
activity level. If recipient-country OR recipient-region are
reported at the transaction level, ALL transactions MUST
contain a recipient-country or recipient-region element and
iati-activity/recipient-country
and iati-activity/recipient-region MUST NOT be used.
Rules
~~~~~
This element may occur any number of times.
Attributes
~~~~~~~~~~
.. _iati-activities/iati-activity/recipient-country/.code:
@code
ISO 3166-1 alpha-2 code for the country.
This attribute is required.
This value must be of type xsd:string.
This value should be on the :doc:`Country codelist `.
.. _iati-activities/iati-activity/recipient-country/.percentage:
@percentage
The percentage of total commitments or total activity budget to this item. Content must be a decimal number between 0 and 100 inclusive, with no percentage sign. Percentages for all reported countries and regions within a vocabulary MUST add up to 100.
This value must be of type xsd:decimal.
The sum of values matched at ``recipient-country/@percentage`` and ``recipient-region/@percentage`` must be ``100``.
The value of each of the elements described by ``recipient-country/@percentage`` must be at least ``0.0`` no more than ``100.0`` (inclusive).
Example Usage
~~~~~~~~~~~~~
Example ``recipient-country`` of an ``iati-activity``.
| The ``@code`` attribute declares a valid code (*AF*) from the *Country* codelist.
.. code-block:: xml
| The ``recipient-country`` element can be repeated in any ``iati-activity``.
| When multiple ``recipient-country`` are declared, then the ``@percentage`` values should sum to 100% for the specific ``iati-activity``:
.. code-block:: xml
| When both the ``recipient-region`` and ``recipient-country``, then the ``@percentage`` values should sum to 100% for the specific ``iati-activity``.
.. code-block:: xml
Changelog
~~~~~~~~~
2.03
^^^^
Definition of ``@percentage`` attribute `updated `__.
2.01
^^^^
Freetext is no longer allowed with this element. It should `now be declared `__ with the new child ``narrative`` element, but only in particular use-cases.
1.03
^^^^
Where used, the ``@percentage`` attribute is now designated as a decimal value and no longer as a positive Integer
Developer tools
~~~~~~~~~~~~~~~
Find the source of this documentation on github:
* `Schema `_
* `Extra Documentation `_
Subelements
~~~~~~~~~~~
.. toctree::
:titlesonly:
:maxdepth: 1
recipient-country/narrative