[Xerte-dev] Re: Next version - XML or JSON
Pat Lockley
patrick.lockley at googlemail.com
Thu Mar 1 10:40:09 GMT 2012
Run a php XML to object call (relatively simple), then json_encode
that (native function) then echo it out (or print).
If you JSON'ed everything - then there are quite a lot of editors
built for JSON editing, so you could get rid of flash altogether.
How to migrate - same sort of process. Make it optional? I don't see
json as directly enabling new page types, so it wouldn't alter the
provision of pages, just how they are stored.
I'd also wonder if it makes sense to write the new "player" solely within jQuery
On Thu, Mar 1, 2012 at 10:28 AM, Julian Tenney
<Julian.Tenney at nottingham.ac.uk> wrote:
> And have that mangle the xml into json?
>
> Or start saving json out of the wizard? Some advantages with formatting / handling special characters down that route, but how to support existing templates? Do both?
>
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
> Sent: 01 March 2012 10:25
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Next version - XML or JSON
>
> the faux object stuff might be easier if JSON'ed by default, as a
> tonne of JS libraries exist
>
> You could make a json_ page relatively easily
>
> On Thu, Mar 1, 2012 at 10:20 AM, Julian Tenney
> <Julian.Tenney at nottingham.ac.uk> wrote:
>> Well, in Xerte it all gets turned into that faux object stuff anyway, so it's probably much the same: working with the xml directly is a pain, the xml2object stuff much easier, and probably gives something similar to a json result. The files are xml though, so we need to start with that.
>>
>>
>> -----Original Message-----
>> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>> Sent: 01 March 2012 10:14
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Re: Next version - XML or JSON
>>
>> developer types prefer JSON now
>>
>> On Thu, Mar 1, 2012 at 10:07 AM, Julian Tenney
>> <Julian.Tenney at nottingham.ac.uk> wrote:
>>> I was planning on hitting the existing xml_1234 links. But open minded.
>>>
>>> Why?
>>>
>>> -----Original Message-----
>>> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>>> Sent: 01 March 2012 10:07
>>> To: For Xerte technical developers
>>> Subject: [Xerte-dev] Next version - XML or JSON
>>>
>>> Hello,
>>>
>>> Question about HTML 5 version - will it be based around the learning
>>> object as JSON, or the learning object as XML?
>>>
>>> Pat
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>
>>> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>>>
>>> This message has been checked for viruses but the contents of an attachment
>>> may still contain software viruses which could damage your computer system:
>>> you are advised to perform your own checks. Email communications with the
>>> University of Nottingham may be monitored as permitted by UK legislation.
>>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an attachment
>> may still contain software viruses which could damage your computer system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
More information about the Xerte-dev
mailing list