3 ms·
A schema can be written in 15-30 mins to make XML as opinionated as you want it to be.
by lenkite 4y ago
A schema can be written in 15-30 mins to make XML as opinionated as you want it to be.
- adgjlsfhk1 4y agoand then you'll read an xml file that doesn't meet your schema and your code will crash
- lenkite 4y agoWith nice validation errors pointing to line, col where unexpected information was found. I'll definitely take that.
- delta_p_delta_x 4y agoThat's the point of the schema—use it to generate compliant serialisation/deserialisation code, and use that code to generate/read your schema-compliant XML. No issues anywhere. There's only one point of failure here: bugs in the code generator.
- Spivak 4y agoI think the other smell is not using serializers with XML. If when you consume a document you’re not getting an actual useful object back of course you’re going to hate it.