Try this: http://www.php.net/simplexml You should be able to find examples that can be used in many situations.