4 ms·
In my opinion one of the weaknesses of XML is that it gives so many ways to express the same data, in attributes, as nested elements, with CDATA, and probably d
by reirob 7y ago
In my opinion one of the weaknesses of XML is that it gives so many ways to express the same data, in attributes, as nested elements, with CDATA, and probably different other ways. And often it is a matter of taste. So in the end you come up with so many approaches to express similar structures.
- thesuperbigfrog 7y ago>> So in the end you come up with so many approaches to express similar structures. Expressiveness and flexibility are good so that you can define configuration to meet the needs of the system or application you are building. XML Schema, Relax NG, etc. can be used to specify how the XML configuration should be structured, limits on data types, required versus optional configuration items. As I said before, XML gets a lot of flack for being verbose, ugly, and complicated, but it is mature, widely-supported, and might be worth considering depending on your needs.
- benibela 7y agoSome parts are extremly ugly, and mostly pointless. namespaces, doctype, processing instructions. This is well-formed xml and good way to confuse people: <?xml version="1.0"?><!DOCTYPE abc[<?abc >]]<abc><abc/>]>>?>]><?x?><a/><?x <(x)>>?>