Re: [xml-dev] ten years later, time to repeat it?

From
John Snelson <>
To
Michael Kay <>
Date
2008-02-12T11:25:20Z
ID
<>
Thread
Re: [xml-dev] ten years later, time to repeat it?
Michael Kay wrote:
> Is there an accepted mapping of JSON to XML? And is there a SAX parser?

There is no accepted mapping of JSON to XML. There's a lot of people who 
have made a stab at converting XML to JSON to varying degrees of 
success. There are a few people who have tried to convert JSON to XML 
but their methods can only handle a subset of JSON documents, or give a 
mapping that is not 1-1.

I've recently been researching this, because it seems obvious that 
languages like XQuery should easily be able to handle JSON processing. 
I've come up with a 1-1 mapping of JSON to XML, and have been adding 
extension functions to XQilla in order to translate back and forth.

I should probably write my work up to get some feedback on it.

John

-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net