News for hackers. Stuff that matters.
Re:XML is better than YAML by TRiG_Ireland on Wednesday September 20, 2023 @03:24PM (#37588804)
I think I'm with the author on this. The two scenarios are very different. Bold text is probably a span of text within a larger block of text: delimiting it with an opening and closing tag makes sense. A config value is a boolean switch.

This makes sense:

    <element>Some text here. <bold>Some more text here.</bold> And yet further text here.</element>
This does not:

    <value>true</value>
That should be:

    value: true
Re:XML is better than YAML by stvltvs on Wednesday September 20, 2023 @07:12PM (#37591294)
A better XML encoding would be the following, optimally with a schema that would define allowed values.

    <setting name="foo" value="true"/>
Re:XML is better than YAML by TRiG_Ireland on Wednesday September 20, 2023 @08:31PM (#37591846)
That still feels ugly and verbose to me.
Re:XML is better than YAML by stvltvs on Wednesday September 20, 2023 @08:48PM (#37591949)
I don't disagree, but it's easier to rigorously validate than lighter-weight markup languages, if that's important to the use case.