XML to JSON using PHP

This is a discussion on XML to JSON using PHP within the PHP Language forums, part of the PHP Programming Forums category; Hi, Just wondering what the best way to go from XML to JSON is? I have tried to find a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2006
Gooseman
 
Posts: n/a
Default XML to JSON using PHP

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!

Reply With Quote
  #2 (permalink)  
Old 07-11-2006
Mel
 
Posts: n/a
Default Re: XML to JSON using PHP

On 2006-07-11 01:56:25 +1000, "Gooseman" <jgabbai@gmail.com> said:

> 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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0