News for hackers. Stuff that matters.
Re:XML is almost always misused by theamk on Tuesday October 29, 2019 @04:24PM (#21391570)
One thing this misses in the "dictionary" example is that tools (like xpath) push you towards "key in attribute" selection. One of the most common operations we do with dictionaries is lookup by known key, and storing the key in attributes makes it much easier.
Re:XML is almost always misused by spiralx on Friday November 01, 2019 @11:49AM (#21420064)
"Key in attribute" is the correct way to do it, it's just that his examples are absolutely terrible and make no sense at all. A completely unstructured list of key-value pairs is overkill for any structured data format.