Upload
By clicking on the Upload button, a prompt popup message will appear, require a user to agree or disagree (Upload Locations). If user agrees the selected file containing locations will be uploaded.
![](https://openimis.atlassian.net/wiki/download/thumbnails/3721626058/image_upload_locations.png?version=1&modificationDate=1708031650308&cacheVersion=1&api=v2&width=378)
Img. 202 Upload Locations
A statistics on the number of inserted/updated locations appears (Upload Locations statistics)
![](https://openimis.atlassian.net/wiki/download/thumbnails/3721626058/image_upload_locations_statistics.png?version=1&modificationDate=1708031650315&cacheVersion=1&api=v2&width=250)
Img. 203 Upload Locations statistics
If there are errors an error protocol appears (Upload Locations error)
![](https://openimis.atlassian.net/wiki/download/thumbnails/3721626058/image_upload_locations_error.png?version=1&modificationDate=1708031650323&cacheVersion=1&api=v2&width=384)
Img. 204 Upload Locations error
DTD definition of the XML file for uploading/downloading of locations:
<!DOCTYPE Locations> [
<!ELEMENT Locations (Regions, Districts, Municipalities, Villages)>
<!ELEMENT Regions (Region*)>
<!ELEMENT Region (RegionCode, RegionName)>
< !ELEMENT RegionCode (#CDATA)>
< !ELEMENT RegionName (#CDATA)>
<!ELEMENT Districts (District*)>
<!ELEMENT District (RegionCode,DistrictCode, DistrictName)>
< !ELEMENT RegionCode (#CDATA)>
< !ELEMENT DistrictCode (#CDATA)>
< !ELEMENT DistrictName (#CDATA)>
<!ELEMENT Municipalities (Municipality*)>
<!ELEMENT Municipality (DistrictCode,MunicipalityCode, MunicipalityName)>
< !ELEMENT DistrictCode (#CDATA)>
< !ELEMENT MunicipalityCode (#CDATA)>
< !ELEMENT MunicipalityName (#CDATA)>
<!ELEMENT Villages (Village*)>
<!ELEMENT Village (MunicipalityCode,VillageCode, VillageName,MalePopulation ?, FemalePopulation ?, OtherPopulation,Families ?)>
< !ELEMENT MunicipalityCode (#CDATA)>
< !ELEMENT VillageCode (#CDATA)>
< !ELEMENT VillageName (#CDATA)>
< !ELEMENT MalePopulation (#CDATA)>
< !ELEMENT FemalePopulation (#CDATA)>
< !ELEMENT OtherPopulation (#CDATA)>
< !ELEMENT Families (#CDATA)>
]>