[ { "fruit": "banana" }, { "color": "yellow" }, [ 1 ] ]
<document> <fruit>banana</fruit> <color>yellow</color> <ids> <id>1</id> </ids> </document>
I'd generally prefer to work with JSON, too. But the silver lining of XML is that you can define virtually any schema you want, and there are times that's conceivably going to be clearer or even more concise than the equivalent JSON.
I'd generally prefer to work with JSON, too. But the silver lining of XML is that you can define virtually any schema you want, and there are times that's conceivably going to be clearer or even more concise than the equivalent JSON.