Tango.info xml2json

From tango.info wiki
Jump to navigation Jump to search

Overview

Any tango.info XML should be convertible into JSON, and any tango.info JSON should be convertible into XML.

This page shows some examples and shall help to determine the formats.

Possible this is solved with JsonML.

More conversion conventions, some lossy, listed at

XML without attribute

<trackset>
<track>
<trackname>
La cumparsita
</trackname>
<duration>
3:51
<source>
cover
</source>
</duration>

<duration>
3:52
<source>
rip
</source>
</duration>

</track>
</trackset>

XML with attribute

<trackset>
<track trackname="La cumparsita" >

<duration value="3:51" source="cover" />
<duration value="3:52" source="rip" />

</track>
</trackset>

JSON

Incomplete!

{"trackset"
[

"track":{
 "trackname":"La cumparsita", "duration":"3:51"
}

]
}

JsonML

http://en.wikipedia.org/wiki/JsonML