Get lat/lon from relation(/way)

Hey all,

I would like to get the lat/lon values for all nodes in a given relation (which comprises of several subrelations, which in turn contains “ways”). What is the best way to do this?