2 ms·
They really should have made namespaces just be {url} prefixes on element and attribute names. <{http://my.example.com/ns/fruit}citrus http://my.example.com/ns
by yencabulator 4y ago
They really should have made namespaces just be {url} prefixes on element and attribute names.
<{http://my.example.com/ns/fruit}citrus http://my.example.com/ns/fruit}citrus>
...
</{http://my.example.com/ns/fruit}citrus http://my.example.com/ns/fruit}citrus>
Sure, it's textual bloat, but XML was already verbose and already compressed well with gzip, and it's a lot simpler to process.
The problem with the xmlns:alias="url" rewriting thing was that 1) most things didn't bother implementing it in full, and ended up e.g. relying on the name of the chosen alias 2) it had a special case of changing the current default namespace, which caused even more bad implementations.