On 1/31/12 8:06 AM, Roan Kattouw wrote:
I hate having to continue support for XML because it limits the keys you can use in all sorts of ways.
Right. I'm assuming here that the XML serializer makes some assumptions about arrays and so on and how to transform them into nested tags. Which are failing.
I can't tell you exactly what's going wrong unless you can give me a full dump of the relevant PHP data structure
Please avoid solutions where your presence is required to solve a problem.
that you tried to run through the XML formatter. You may or may not be able to get away with some indexed tag names here and there.
Wikidom is still a moving target. Let's just assume it has to be an arbitrary data structure. And one that I'd rather not have to update the API for every time we change it.
(Also, are you sure you really want to support WikiDOM being formatted as XML or WDDX or ... ?)
Probably not. The other option is to stringify it, as the API sometimes does with returned XML.
But then you have quoted JSON in JSON, and that seems stupid too.