XML is a well-format and generally used in data transfer and store,likewise,JSON is a very convenient format for interchange data, and moreover JSON is easy to be parse by many language,
Based on this, specially when use javascript parse and loop the elements by xml,it's very time-consuming, we resort to the JSON, now we use the php to convert the xml to JSON format.
Prerequisite, json.php(standard package),xml2json.php(convert the xml to json) and some xml files.
refer to the attachment for detailed!