|
|
Subject:
XML to JSON using PHP
Category: Computers > Internet Asked by: goose_man-ga List Price: $2.00 |
Posted:
11 Jul 2006 02:29 PDT
Expires: 10 Aug 2006 02:29 PDT Question ID: 745221 |
Hi, Just wondering what the best way to go from XML to JSON is? I have tried to find a good XSLT that can do this, but so far no luck. Maybe there is a better way of doing this? Appreciate any advice, Thanks! |
|
Subject:
Re: XML to JSON using PHP
Answered By: eiffel-ga on 11 Jul 2006 03:19 PDT Rated: |
Hi goose_man-ga, If you don't want to use an XSLT approach such as json-xslt from eBay's Community Codebase https://json-xslt.codebase.ebay.com/ then you could consider BadgerFish: BadgerFish http://badgerfish.ning.com/ BadgerFish is a set of conventions for how XML data should be represented in JSON. If you are able to use these convention for your application, it makes processing and conversion rather straightforward. BadgerFish also includes a PHP class to do the conversion from an XML document to the JSON string (formatted according to BadgerFish conversion conventions) - see the "How Can I Use It" section of the BadgerFish web page. I trust you find this approach useful. It's certainly the approach I would use for this purpose. Regards, eiffel-ga Google Search Strategy: "xml to OR 2 json" php ://www.google.com/search?q=%22xml+to+OR+2+json%22+php | |
| |
|
goose_man-ga
rated this answer:
Thanks for the BadgerFish link! |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |