Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Difference in XML /RDF vs JSON

Here are examples to make things clearer:
For first problem  if the list contains lyo-1 to lyo-10 
in xml I would get: 

lyo-7
lyo-4 
lyo-1
lyo-10
.... etc

but in json I would get:

lyo-1
lyo-2
lyo-3
lyo-4
...etc

For the second problem if lets says lyo-5 has a link relates to lyo-7 then in xml i will get:
lyo-5 
 <title>:.. 
 <relates to> lyo-7: 
 title:...
lyo-3
lyo-10
lyo-7 (but with no attributes )
....

In json i will get them in order with attributes;
lyo-1
lyo-2 
...etc

Hope these examples make the problems easier to understand.

Best Regards,

Mohamed


2014-03-28 11:22 GMT+01:00 mohamed mosaad <m.mosaad1991@xxxxxxxxx>:
Hi all,

I noticed when I request a list in a certain order, with header with application/xml or application/rdf+xml in the header, the list returned is not in the correct order.
However with application/json it is returned in the right order.

Another problem is when there is a Link attribute that links one of the resources in the list to the other , the xml returned places the linked resource inside the other as if it was one of its attrbutes instead of just keeping the link as it is. This causes that some items in the list appear inside others and not as members of the list.
Again in application/json this does not happen.

Has anyone faced similar problems and how can I fix this?

Best Regards,

Mohamed Mahmoud


Back to the top