Kai, There's an article here http://www.ibm.com/developerworks/xml/library/x-xml2jsonphp/ with some code to do the conversion...
James --- James Crowley CEO, developerFusion - the global developer community Developer Fusion Ltd | 58 Sandringham Close | Enfield, EN1 3JH web: http://www.developerfusion.com/ twitter: http://twitter.com/developerfusion -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kai Hendry Sent: 09 November 2008 10:10 To: [email protected] Subject: Re: [backstage-developer] Weather Geolocation Still plugging away. :-) http://bbcfeeds.dabase.com/problem_description.txt Does anyone have some simple solutions pref. in Shell CGI or PHP to convert XML into JSON? Suckless solutions please. i.e. the least amount of code possible. http://backstage.bbc.co.uk/data/WeatherFeeds?v=p12 Or why doesn't BBC backstage offer JSON feeds? XML is such a PITA and you need callbacks nowadays for mashups, don't you? Next observation is that there is a huge amount of white space in the feed. http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/2053.xml Though it says """All of the 7379 feeds are updated at least* twice a day (at approximately 8AM/PM *GMT*)""", you should set cache control headers, so HTTP can works its magic. See Mark Nottingham's guide on this topic, http://www.mnot.net/cache_docs/ Ok, now I really need to address my other projects. Bye, - Sent via the backstage.bbc.co.uk developer discussion group. To unsubscribe, please send an email to [EMAIL PROTECTED] with unsubscribe backstage-developer [your email] as the message. - Sent via the backstage.bbc.co.uk developer discussion group. To unsubscribe, please send an email to [EMAIL PROTECTED] with unsubscribe backstage-developer [your email] as the message.

