How to publish an RSS Feed?

What is the current/best way to render a list of nodes as RSS feed?

I do something similar to what Michiel described (though some parts are a bit odd):

Can you point me to your current solution? I already tried what Michiel described, but it lacks at least one point: ordering the RSS feed, so that it only contains e.g. the newest entries, e.g. the 10 last changed pages.

I don’t have exactly what you need. But you can just get all document nodes, sort them by _lastModificationDateTime (with smth like this), and slice 10 items.