News for hackers. Stuff that matters.
Re:XML is almost always misused by commandlinefan on Tuesday October 29, 2019 @05:39PM (#21392368)
Well, the problem with INI files for configuration is that config files (legitimately!) need to be able to represent repetition, nesting, schemas and comments, which there was never any standardization for. While XML seems like overkill for something as mundane as a config file, the standard does at least cover all of the cases you need.
Re:XML is almost always misused by Koshkin on Tuesday October 29, 2019 @06:30PM (#21392801)
If your config is that complex, you might be better served by JSON - or the full JS or, say, Lua, for that matter. Because what you are talking about looks more like (interpreted) code than a config.
Re:XML is almost always misused by hnick on Tuesday October 29, 2019 @11:44PM (#21394510)
It's under- and mis-used, but XSD helps to validate config files and provide some guidance on the structure. I know JSON has a schema in draft, is it used much?

An example of XML config we used at my workplace was a processing pipeline with various modules and options/parameters encoded for each phase (some optional) of the pipeline. So in a sense it was configuration that resulted in executing code modules, not so much your standard options.