Using XML to display data

I’m new to using XML, but would like to use it to display data.

Basically I need to display the following: product name, description, url, category

Found this tutorial on w3schools.com and would like to get people’s opinion on its approach.

http://www.w3schools.com/dom/dom_parser.asp

Would this be the best way achieve what I’m doing. I want to make sure it can be viewed by everyone who visits the site. With this example, would I also be able to create some sort of filter, in case, I want it to only show the products under a specific category?

Or should I use XSL? Or anything else?

Thanks