4 ms·
How awesome would XML be if it didn't have attributes, namespaces and could close elements with </>
by scotty79 8mo ago
How awesome would XML be if it didn't have attributes, namespaces and could close elements with </>
- panzi 8mo agoWithout namespaces it would be just ML, and that already has another meaning.
- marcosdumay 8mo agoThe "extendable" part is about accepting unknown tags. The namespaces expansion is responsible for destroying this, not for creating it.
- panzi 8mo agoI 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.
- Linux-Fan 8mo agoAnother 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...