For more information, please please refer to:
How to Create an XML to JSON Proxy Server in PHP
This example code was developed by Craig Buckler of OptimalWorks.net for SitePoint.com.
It can be used without any restrictions but please don't expect 24/7 support! A link back to SitePoint.com is appreciated.