logoalt Hacker News

scotty79today at 2:18 PM2 repliesview on HN

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


Replies

Linux-Fantoday at 2:39 PM

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...

panzitoday at 2:36 PM

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

show 1 reply