OSM XML/XSD

From OpenStreetMap Wiki
< OSM XML(Redirected from XML Schema)
Jump to: navigation, search

An XSD (XML Schema) file defines the format of an XML file, in terms of expected elements, how they are nested and repeated, and what attributes they have. In the OpenStreetMap world we use XML for various things, so it is useful to define XML structures with an XSD file.

.osm format / map call

The XML we might be most interested in defining in this way, is the .osm file format, and responses from the API 'map' call (more or less the same XML format)

  • API v0.5/XSD - An attempt to do this back in 2008, based on API v0.5/DTD. This defines the structure as it was for v0.5 of the API.
  • API v0.6/XSD - Ran the DTD through a W3C DTD -> XSD converter.
  • API v0.6/XSD for SSIS - An XSD for osm map data usable to create an SSIS pacakge able to import planet.osm

TODO: Create updated version