--

Well, in the old times we needed to add DTDs and Schemas (XSDs) to the XML so typing and restrictions were more clear. In XML, all the types are always strings (or elements). That's why JSX has props instead of attributes, so it enhances XML to support other types than strings.

Still, you also may want to add schemas for JSONs, so you can quickly validate its content. But as you pointed out, they are already typed.

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.

Responses (1)