by jonathanlydall · 2y ago · 0 comments
What makes you feel that XML is “yuck” here?
But for documents and document-like things such as user interfaces, I think tag based markup is a good fit. I mean html is doing better than ever, so why not xml? Not having 1gig worth of electrons is nice too.
Another thing with xml is that if you give it a finger it tries to take the whole arm and guilt you into using more and more xml technologies like xsd's and dtd's and namespacing and xslt's and before you know it you are neck deep in xml arcana.
Json is also more terse but that's less important.
Being able to generate XSD from your code and then just pass that off to someone else while remaining generally language-agnostic is extremely powerful. JSON is cheap and easy, but it's really not that great.
Is there a way to specify a json schema like you do with xsd?