|
|
|
|
|
by miki123211
452 days ago
|
|
XML is great for documents. If your data is essentially a long piece of text, with annotations associated with certain parts of that text, this is where XML shines. When you try to use XML to represent something like an ecommerce order, financial transaction, instant message and so on, this is where you start to see problems. Trying to shove some extremely convoluted representation of text ranges and their attributes into JSON is just as bad. A good "rule of thumb" would be "does this document still make sense if all the tags are stripped, and only the text nodes remain?" If yes, choose XML, if not, choose JSON. |
|