---
# System prepended metadata

title: Loading metadata (by XPath)

---

# Loading metadata (by XPath)

## Download metadata

1. [MetadataFolder]
2. [LatestMetadata.zip]



## Parsing Xml and Loading to Database

1. Wrapper function: [`LoadAllXmlFiles`]
2. Core function: [`GetMetadataEntities`]
3. EntityModel: [`MetadataEntity.cs`]

[MetadataFolder]: https://livemanchesterac-my.sharepoint.com/personal/chris_lam_manchester_ac_uk/_layouts/15/onedrive.aspx?id=%2Fsites%2FUoM%2DNERC%2DDSA%2FShared%20Documents%2Fnerc%2Ddigital%2Dsolutions%2Dhub%2Fnerc%2Ddata%2Dcentres%2FMetadata%2FNERC&listurl=https%3A%2F%2Flivemanchesterac%2Esharepoint%2Ecom%2Fsites%2FUoM%2DNERC%2DDSA%2FShared%20Documents&viewid=bb6c11ac%2D88cf%2D4219%2Daf07%2D1ace183d1e40&view=0

[LatestMetadata.zip]: https://livemanchesterac.sharepoint.com/:u:/s/UoM-NERC-DSA/EQK8ZUWLhCRBrTs_jOu26d4B7VLSnEb8MGp0CLD8dG1fOA?e=GYGlse

[`MetadataEntity.cs`]: https://github.com/UoMResearchIT/nerc-digital-solutions-hub/blob/develop/Hub/DotNet/Proj/src/NDSH.Geospatial.Metadata.Utilities/src/Models/MetadataEntity.cs

[`LoadAllXmlFiles`]: https://github.com/UoMResearchIT/nerc-digital-solutions-hub/blob/0168b049f287af33e76caf9cb46a1d5e0a71a668/Hub/DotNet/Proj/src/NDSH.Geospatial.Metadata.Utilities/src/Utils/MetadataThinDatabaseController.cs#L293

[`GetMetadataEntities`]:
https://github.com/UoMResearchIT/nerc-digital-solutions-hub/blob/0168b049f287af33e76caf9cb46a1d5e0a71a668/Hub/DotNet/Proj/src/NDSH.Geospatial.Metadata.Utilities/src/Utils/MetadataThinDatabaseController.cs#L226