> For the complete documentation index, see [llms.txt](https://docs.os.uk/os-downloads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.os.uk/os-downloads/products/transport-network-portfolio/os-mastermap-highways-network-roads/os-mastermap-highways-network-roads-technical-specification/gml-examples.md).

# GML examples

This section contains examples of the different GML structure for Full Supply orders and Change Only Update orders and the transactions within.

## **Full supply**

An example of the Full Supply GML including the opening and closing tags:

```xml
<os:FeatureCollection>
<os:FeatureMember>
<highway:RoadNode gml:id="osgb5000005193042483">
 <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/5000005193042483</gml:identifier>
<net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
<net:inspireId>
     <base:Identifier>
      <base:localId>5000005193042483</base:localId>
      <base:namespace>http://data.os.uk/</base:namespace>
     </base:Identifier>
    </net:inspireId>
    <net:inNetwork xlink:href="#OSHighwayNetwork"/>
    <net:geometry>
     <gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_6">
      <gml:pos>611319.332 231278.275</gml:pos>
     </gml:Point>
    </net:geometry>
    <tn:validFrom nilReason="unknown" xsi:nil="true"/>
    <tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
    <highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
    <highway:relatedRoadArea xlink:href="#osgb5000005193041468"/>
   </highway:RoadNode>
</os:FeatureMember >
</os:FeatureCollection >
```

## Change Only Update

An example of the Change Only Update GML including opening and closing tags and the different types of transactions:

```xml
<os:Transaction> 
<os:insert>
<highway:RoadNode gml:id="osgb5000005193042483">
    <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/5000005193042483</gml:identifier>
    <net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
    <net:inspireId>
     <base:Identifier>
      <base:localId>5000005193042483</base:localId>
      <base:namespace>http://data.os.uk/</base:namespace>
     </base:Identifier>
    </net:inspireId>
    <net:inNetwork xlink:href="#OSHighwayNetwork"/>
    <net:geometry>
     <gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_6">
      <gml:pos>611319.332 231278.275</gml:pos>
     </gml:Point>
    </net:geometry>
    <tn:validFrom nilReason="unknown" xsi:nil="true"/>
    <tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
    <highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
    <highway:relatedRoadArea xlink:href="#osgb5000005193041468"/>
   </highway:RoadNode>
</os:insert>
<os:replace>
<highway:RoadNode gml:id="osgb4000000003855390">
    <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003855390</gml:identifier>
    <net:beginLifespanVersion>2016-08-21T00:00:00.000</net:beginLifespanVersion>
    <net:inspireId>
     <base:Identifier>
      <base:localId>4000000003855390</base:localId>
      <base:namespace>http://data.os.uk/</base:namespace>
     </base:Identifier>
    </net:inspireId>
    <net:inNetwork xlink:href="#OSHighwayNetwork"/>
    <net:geometry>
     <gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_2497055">
      <gml:pos>398309.376 865124.714</gml:pos>
     </gml:Point>
    </net:geometry>
    <tn:validFrom nilReason="unknown" xsi:nil="true"/>
    <tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
    <highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">New</highway:reasonForChange>
    <highway:relatedRoadArea xlink:href="#osgb1000002063990526"/>
   </highway:RoadNode>
</os:replace>
<os:delete>
<highway:RoadNode gml:id="osgb4000000003334901">
    <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003334901</gml:identifier>
    <net:beginLifespanVersion>2017-01-13T00:00:00.000</net:beginLifespanVersion>
    <net:inspireId>
     <base:Identifier>
      <base:localId>4000000003334901</base:localId>
      <base:namespace>http://data.os.uk/</base:namespace>
     </base:Identifier>
    </net:inspireId>
    <net:endLifespanVersion>2017-01-13T00:00:00.000</net:endLifespanVersion>
    <net:inNetwork xlink:href="#OSHighwayNetwork"/>
    <net:geometry>
     <gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_0">
      <gml:pos>215328.243 943956.030</gml:pos>
     </gml:Point>
    </net:geometry>
    <tn:validFrom nilReason="unknown" xsi:nil="true"/>
    <tn-ro:formOfRoadNode xlink:title="road end" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/roadEnd"/>
    <highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">End Of Life</highway:reasonForChange>
    <highway:relatedRoadArea xlink:href="#osgb9999"/>
   </highway:RoadNode>
</os:delete>
<os:delete>
<highway:RoadNode gml:id="osgb4000000003336706">
    <gml:identifier codeSpace="http://inspire.jrc.ec.europa.eu/ids">http://data.os.uk/id/4000000003336706</gml:identifier>
    <net:beginLifespanVersion>2017-02-17T00:00:00.000</net:beginLifespanVersion>
    <net:inspireId>
     <base:Identifier>
      <base:localId>4000000003336706</base:localId>
      <base:namespace>http://data.os.uk/</base:namespace>
     </base:Identifier>
    </net:inspireId>
    <net:endLifespanVersion>2017-02-17T00:00:00.000</net:endLifespanVersion>
    <net:inNetwork xlink:href="#OSHighwayNetwork"/>
    <net:geometry>
     <gml:Point srsName="urn:ogc:def:crs:EPSG::27700" gml:id="LOCAL_ID_16">
      <gml:pos>287295.241 935655.346</gml:pos>
     </gml:Point>
    </net:geometry>
    <tn:validFrom nilReason="unknown" xsi:nil="true"/>
    <tn-ro:formOfRoadNode xlink:title="junction" xlink:href="http://inspire.ec.europa.eu/codelist/FormOfRoadNodeValue/junction"/>
    <highway:reasonForChange codeSpace="http://www.os.uk/xml/codelists/ChangeTypeValue.xml">Modified Geometry</highway:reasonForChange>
    <highway:relatedRoadArea xlink:href="#osgb1000000288453345"/>
   </highway:RoadNode>
</os:delete>
</os:Transaction>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.os.uk/os-downloads/products/transport-network-portfolio/os-mastermap-highways-network-roads/os-mastermap-highways-network-roads-technical-specification/gml-examples.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
