By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

XML to JSON using PHP

P: n/a
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!

Jul 10 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mel
On 2006-07-11 01:56:25 +1000, "Gooseman" <jg*****@gmail.comsaid:
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!
I haven't actually done anything like this yet, but would go in the
direction of using simplexml to read in the XML and then dump it out as
an array into one of the PHP JSON "libraries" out there.

Jul 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.