OpenLayers displaying a .osm file directly. This display-osm.osm is a very small example. Most .osm files would be too large to do this, and in general you're more likely to load in vector features in a different way