The output of the following XML:
<users>
<user>
<id:name>Shikhar</id:name>
<id:age>31</id:age>
</user>
<user>
<xd:name>Shashank</xd:name>
<xd:age>29</xd:age>
</user>
</users>
should not have the id: or xd: in it.
{
"user": [
{
"name": "Shikhar",
"age": 31
},
{
"name": "Shashank",
"age": 29
}
]
}
I know how to convert from XML to XML and then to JSON. But I want a direct conversion.