Or you can use OSMLib to convert from .osm format to various sorts of CSV formats. http://wiki.openstreetmap.org/wiki/OSMLib