My website uses XML feeds to inform some specific link partners about where our articles are, and some other basic information. These partners also provide us with feeds of their articles, so we can link together when we have a matching topic. My programmer is able to process feeds in rss 2.0 format, but can't seem to get the same results using an XML feed.. I know they're really both XML feeds, but for whatever reason they're different? Maybe? Files that start like this he can use: - <rss version="2.0"> - <channel> But ones like this are problems, apparently we need a parser? Maybe <?xml version="1.0" encoding="ISO-8859-1" ?> - <xml> - <channel> Any help appreciated! We use mysql/php/linux on the server. Ok to be more clear, we need a script that will handle both xml and rss formatted files. We have an RSS parser at the moment, that spits out arrays for specific variables, since RSS only handles certain variables. Each site we link partner with may name their variables differently, or give us different information. We need to be able to edit it to handle these situations basically.
Try simplepie out. It works well and the developers are really responsive, plus there is a ton of documentation/support. http://simplepie.org/