I want to search my own headlines (XML file) for one word and use the headline with the word somewhere else....

It's a gaming site and I want to search for the 10 latest "demos" that I have posted a story about and put those 10 headlines (with the link) in a space on the front page.

Is there any kind of PHP function that would do this, or what would be an easy way to get the job done?

Edit: It could be RSS too, I don't think that would be any easier though.