I believe you have come up with a rare example where XML is decidedly better suited than JSON!
However, the majority of XML use cases are for document-interchanging applications and the way those are being handled requires massively bloated toolchains of poorly inter-operating software.
> If you want a language with a JSON-like syntax, consider using JavaScript.
You're probably right in making this joke though, since JSON is based on JavaScript it certainly owes its popularity mostly to the browser environment.
I don't think that's a given. JSON is useful because it provides a clear, compact syntax for the most commonly useful data structures - lists, dicts, strings, numbers and booleans. That's certainly why I switched to it over XML (and serialised PHP objects).
Why not just... use a scripting language?
I hear LUI is pretty popular as a DSN these days.
As in, XML nodes are "game script commands" which are executed sequentially.