3 ms·
The only thing I really liked about XML was schemas (XSD I think?). The ability to design a schema that could be passed around to let people validate the data
by brightball 4y ago
The only thing I really liked about XML was schemas (XSD I think?).
The ability to design a schema that could be passed around to let people validate the data and structure of an XML file before sending it was really slick. The schema designer tools were easy to use.
I actually enjoyed using WSDL based web services specifically because of this. You could take the file, which was just a schema and generate all the code and data structures you needed to interface with the API from any language…and you got the ability to validate your data client side before even bothering to send it.
It definitely had some pain points, but overall these were the good points that I remember.
GraphQL is probably the closest next evolution.
- LAC-Tech 4y agoJSON Schema is a thing
- magicalhippo 4y agoI've just started looking into switching our integrations from XML to JSON. Tooling around JSON Schema seems to be a bit lacking though. Like, Swagger UI and editor doesn't fully support the latest JSON Schema version, especially w.r.t. choice-like oneOf elements. And if any of you know of any good tools to visualize a large JSON schema, similar to XMLSpy, that's compatible with the latest JSON schema version then I'd love to hear about it.