How to create an rss or xml page perfectly?

How to create an xml or rss perfectly step by step?
I created an xml (rss) page according the instruction within the cakephp book, but when i checked on rss reader it didn’t load an xml, instead of html page…
Please your lecture!