Very good!!!

Are possible to do reverse?



--
Alexsandro
www.alexsandro.com.br

On 4 jul, 12:34, Diego <[EMAIL PROTECTED]> wrote:
> I wrote this a few months but didn't have the time to share it. Now
> that I've re-done the documentation for 2 of my plugins I thought I'd
> give it a few hours, knock some examples together and share it with
> the whole world (ok, maybe just a few people).
>
> Basic example:
> var xml = '<xml><message>Hello world</message></xml>';
> var json = $.xml2json(xml);
> alert(json.message); // shows "Hello world"
>
> Ajax example:
> var file = 'data/hello.xml'; //<xml><message>Hello world</message></
> xml>
> $.get(file, function(xml){
>  var json = $.xml2json(xml);
>  alert(json.message);
>
> });
>
> See the documentation page for more examples and demos.
> XML to JSON Plugin -http://fyneworks.com/jquery/xml-to-json/
>
> As always, feedback is welcome!
>
> Cheers,
> Diego

Reply via email to