I suppose you read my blog post on custom RSS feeds. I wanted to give a small update, as the solution described there was not sufficient. In the end I needed to output an XML file and every item had to be in the same format. As I was outputting the last node for three different content types, I needed to do some custom coding. The node_feed function was not the ideal solution.
I ended up making my own node_feed function. Here's the code:
Do you have any ideas, suggestions, remarks,... Please provide your comment below! Thanks.
Update: Someone asked me about the db_query_slave(). That is a function that comes with the pressflow distribution. It's a way to make a better use of mysql master-slave setups. If you're sure a query is read-only, use db_query_slave to send it to the slave db.