Remix.run Logo
scotty79 7 hours ago

How awesome would XML be if it didn't have attributes, namespaces and could close elements with </>

Linux-Fan 6 hours ago | parent | next [-]

Another way to make XML awesome (especially for config files and the like) is to completely avoid CDATA i.e. no <config><key>value</key><key2>value2</key2></config> but rather: <config key="value" key2="value2"/> -- simple constructions can then do with just a root element. Of course this pattern only pays off if you need the XML parser for other parts of the application, too...

panzi 6 hours ago | parent | prev [-]

Without namespaces it would be just ML, and that already has another meaning.

marcosdumay 5 hours ago | parent [-]

The "extendable" part is about accepting unknown tags. The namespaces expansion is responsible for destroying this, not for creating it.

panzi 5 hours ago | parent [-]

I mean I guess one can look at it like that. One could also say that namespaces make it clear what extension it is and resolve name conflicts.