Just one more question. If I want to sort the results and create the html based on the category, so all the tech links would be listed, then all the whatever. Would it be better form to pull the xml into an array and then sort? or try to xpath through the file?

Thanks