I am new to deal with OSM data, and I want to download only .osm files not .pbf. I tried geofabrik.com but it provides .osm.pbf file format

  1. where can I download .osm files?
  2. is there any recommended way to convert .osm files to .xml?

closed as too broad by PolyGeo Dec 9 '15 at 10:47

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  1. where can I download .osm files

Just go again to Geofabrik to get files with extension .osm.bz2: it's .osm files compressed using .bz2 (it's like .zip but with an alternate compression).

After getting .osm.bz2, uncompress them. You will get the .osm files.

  1. is there any recommended way to convert .osm files to .xml?

There are no conversion step to xml: an .osm file is an xml file (open it with a text editor and look the first line). You misunderstand relationship between extensions and serialisation (XML).

Not the answer you're looking for? Browse other questions tagged or ask your own question.