Since I needed the same functionality I started programming an application to do just that. It’s nowhere near finished yet, but you might want to check if I added exporting yet :wink:

See thread http://forum.openstreetmap.org/viewtopic.php?id=7901