XML file resources

Browse schemas and related files used by our digital mapping products

Terms and conditions for the use of XML schemas and code lists

By downloading any schema from this repository, you agree to the terms and conditions of the Ordnance Survey XML Schema Licence. 

OS MasterMap layer schemas

XML schema files and DTDs which define the contents and structure of OS MasterMap XML files. These are applicable for our longer-established layers; Topography and Imagery. 

Version 9 – Current schemas

The version 9 schemas incorporate:

  • Additional descriptive terms for OS MasterMap Topography Layer as well as a schema upgrade.
  • English is removed as the default language, recognising that in many cases the name of a place is ‘accepted’, and may actually be, for example, Welsh.
  • A change to the way chunkingPolicy and chunkSize are defined within the OSQueryResult.xsd, to satisfy contemporary XML validation.

 Component files

Other schema models

XML resources for Site layer, Water Network, Highways Network, OS Terrain, OS VectorMap, and OS Open products.

Sites layer

Water Network

XML schema v1 

This directory of the website contains:

The general network schema is also relevant:

Highways Network

XML schema v2.0

This directory of the website contains:

The general network schema is also relevant:

OS Terrain

Schema repository for OS Terrain 5 and OS Terrain 50

OS VectorMap

Schema repository for OS VectorMap Local and OS VectorMap District

H4: OS VectorMap Local

Bold: Version 2 - sample data

Version 1 – deprecated (Zipped archive of schema files)

H4: OS VectorMap District

Version 2.1

Version 2 – deprecated

Version 1 – deprecated

OS Open

Schema repository for OS Open products.

Current version

Related information

  • Code lists

    Access files provide a controlled list and formal definition for values used in certain attributes of our data products.

  • Product and service metadata

    Access metadata records for each published product dataset and service.