I am quite new to xml, and I am trying to create a xml file that contains a train table.

I am however unsure how to do this. The table must contain different stops, train numbers, routes and times.

How can I do this in a way so I can later extract f.ex the stop times on a certain route for a given street.

F.ex I have train number 67 that goes from Berlin to Munich, with stops in Frankfurt and Köln. And I have train number 65 that goes from Copenhagen to Munich with stop in Kôln.

How can i organize this in a xml file so that I later can extract all departures by all trains from Köln, or all departures by train number 67 and so on.

If there are any germans in here, i appologize for my bad geography skills. I just used these cities as an example ;-)