News for hackers. Stuff that matters.
Re:XML is almost always misused by Sharlin on Tuesday October 29, 2019 @04:34PM (#21391676)
This is not a dictionary, it’s a record. Unfortunately this fairly fundamental distinction has been thoroughly muddied by certain languages that want to use associative arrays for everything.
Re:XML is almost always misused by mpweiher on Tuesday October 29, 2019 @04:41PM (#21391754)
Hmm...you seem to be mapping programming language concepts 1:1 to XML. That is a mistake.
Re:XML is almost always misused by Sharlin on Tuesday October 29, 2019 @04:44PM (#21391796)
I'm not the one doing that. People using XML as something else than a document markup language are. Which is what the article author is complaining about. But if you really want to do that, then at least do it properly. Record fields have predefined names, just like XML elements have predefined names. Dictionary keys can be arbitrary, like XML text nodes or attribute values but emphatically not element or attribute names, unless your "XML" is actually just tag soup.