Better HN
topnewbestaskshowjobs
Log inSign up

kdjdjsj

3 karma · joined Sep 11, 2024 (2y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

I too really don't get the hate for XML

Features like schema feel very natural in XML whereas JSON schema feels outer worldly; and is seldomly used

Being able to clearly distinguish between multiple semantically different types of strings is a blessing

And coming back to your example, how is the knowledge in JSON of which attribute is an array, which is an object, which is a string and when order of attributes as well as duplicates matter and when not any easier than XML?

comment 2y ago · link · parent

The problem obviously is using string templating without proper escaping

Any format would fail if used like that, be it YAML, JSON, XML...