[GIS] Extract country border from OpenStreetMap

cartographyopenstreetmapxml

enter image description here

I'm trying to extract the Jordanian country border from an OpenStreetMap. When I click the download link for the file, the following page opens:

enter image description here

How do I save these XML tags as an XML- or OSM file which I can convert into a shapefile, so that I can use it in QGIS?

Best Answer

If you want to convert it to a Shapefile just download the xml (for example right-mouse-click on the download link and choose something like "save target as..." instead of opening it in the browser. then in Qgis choose "add vectorlayer" or use drag and drop to add your xml layer to your Qgis project. then save layer as shapefile. If you are just looking for the borders and it does not have to be OSM you could also have a look at http://gadm.org