Does anybody have any code that parses an xml to an array, or vice versa? That works in PHP 4+ OR is there any XML library/extension/whatever that I'm not aware of that works just fine in both PHP 4 and 5? OR, ignoring arrays, is there a way to work with XMLs in both PHP 4 and 5?
Take a look at the simplexml functions. They are usually installed and easy to use. php.net/simplexml
Use DOM XML functions If you want something ready to use, search "php array to xml" in google, here is something I found: phpclasses.org/browse/file/6211.html (sorry, you have to copy paste as I cannot post "live links")