I have hosted an online XML to JSON converter at
http://gogooog.com. It has been implemented purely with Javascript. You can read about the xml to
badgerfish conversion at
http://ruchirawageesha.blogspot.com/2011/01/xml-to-badgerfish-converter-in.html.
check this one http://json.online-toolz.com/tools/xml-json-convertor.php
ReplyDelete@TinyStack,
ReplyDeleteThanks for pointing that out. But I am not sure what is the convention that it uses. Further, it removes details of the XML such as namespaces which is one of the greatest feature of XML. When we remove this kind of details from the XML, then we will get a completely different XML when we convert the JSON back to XML. E.g.
<json>
<hello xmlns="foo" xmlns:n="bar">
<n:name>world</n:name>
</hello>
</json>
gives me
{"json":{"hello":""}}
hadargitti sulemagane....
ReplyDeleteGreat!!!
ReplyDeletetry this one : "textAtextB = textC"
ReplyDeleteit doesn't do compatible backward conversion
@alexander
ReplyDeleteWhat did you mean by this?
"textAtextB = textC"
check this for easy to understand and good viewer
ReplyDeletehttp://codebeautify.org/view/xml2json
Love JSON tool and want to share http://jsonformatter.org which does JSON to XML
ReplyDelete