News for hackers. Stuff that matters.
Re:XML for databases: a dead idea by MattRogish on Tuesday January 15, 2013 @11:04AM (#5060787)
Good. XML for data-storage was always a bad idea and I (and others http://www.dbdebunk.com/) have been ranting about it since the beginning. XML is verbose, hard to parse, and enforces a ridged hierarchy, even if your data model didn't need it.

Presumably XML is good for "interchange" but I've never found that to be the case. JSON seems to do just fine. :)

Re:XML for databases: a dead idea by MichaelGG on Tuesday January 15, 2013 @11:51AM (#5061172)
Don't forget that XML came around 5-10 years before JSON got anywhere.

XML changed things, because it shifted focus from syntax and parsing to the actual meaning of the document. It's easy now to say XML sucks, but having a standard format (that was self-documenting, too) that _everyone_ jumped on, is a major jump.

Go look at RFCs for HTTP or SIP and see how idiotic it is to have to parse yet another custom format with all sorts of cutesy exceptions. XML eliminates that. Can it be done better? Now, sure.

Re:XML for databases: a dead idea by EugeneOZ on Tuesday January 15, 2013 @01:32PM (#5061890)
Actually XML is more "reach" format than JSON. XML nodes have attributes and values, when in JSON - values only. And lot of databases are "document-oriented": http://en.wikipedia.org/wiki/Document-oriented_database and what is matters in comparison is parsing performance and size. JSON just more compact, but not better in all aspects. I think XML is an excellent format, especially when size matters less than "dimensions" of presented information. I think it's perfect format for RSS and for REST API and for web-pages.
Re:XML for databases: a dead idea by evincarofautumn on Tuesday January 15, 2013 @02:15PM (#5062252)
XML seen in the wild rarely has good separation of attributes and values. It can be useful to distinguish data and metadata, but it’s more expressivity than perhaps most applications need.
Re:XML for databases: a dead idea by TeMPOraL on Tuesday January 15, 2013 @11:08AM (#5060825)
> Presumably XML is good for "interchange" but I've never found that to be the case. JSON seems to do just fine. :)

It's not; they are as well many rants about using it as a data interchange format, 'cause pretty much everything, from S-expressions to JSON, is better at this task.

Re:XML for databases: a dead idea by car54whereareu on Tuesday January 15, 2013 @12:38PM (#5061507)
I prefer S-expressions to JSON.
Re:XML for databases: a dead idea by jimbokun on Tuesday January 15, 2013 @03:15PM (#5062683)
I don't know if this was your intent, but reading your comment there seems an implication XML is no longer a good fit for anything, really.

But from the article:

"When XML was originally conceived, it was meant for document formats. And by that standard… boy! did it succeed! Virtually all word processing and e-book formats are in XML today."

Document formats is a large, important area of technology. I suppose each of us can decide if that means XML's glass is half-full, or half-empty.