- From: <noah_mendelsohn@us.ibm.com>
- Date: Sat, 3 Oct 2009 12:30:48 -0400
- To: "Michael Kay" <mike@saxonica.com>
- Cc: "'C. M. Sperberg-McQueen'" <cmsmcq@blackmesatech.com>, "'Dennis Sosnoski'" <dms@sosnoski.com>, "'XML4Pharma'" <info@XML4Pharma.com>, xmlschema-dev@w3.org
Michael Kay writes: > When XML was first conceived, I think most people expected it to be used > primarily for documents (I had heard people talking about using SGML for > data in the 1980s, and I thought they were nuts). It's > interesting to review > why XML proved successful as a data interchange format even > though it wasn't > primarily designed for that role. Well, as I've said many times, I believe it's in large part because the use cases aren't always separate. Many of the most interesting documents mix in real data. An insurance policy template, for example, probably has some sort of smart hook to pull in the name of the user and the exact amount of the policy, very possibly sourced from a relational database. So, I think that's what gets you into the business of having robust data typing, etc. Then the question is, do you for uniformity keep using XML in the degenerate case where it really is pure data, or drop back to something simpler. BTW: one of the reasons I'm attuned to this is that Lotus Notes (which I used early when I worked at Lotus, but did not help design) built a business on creating and managing just such mixed document/data constructions, well before XML (but not SGML) became popular. Noah -------------------------------------- Noah Mendelsohn IBM Corporation One Rogers Street Cambridge, MA 02142 1-617-693-4036 -------------------------------------- "Michael Kay" <mike@saxonica.com> 10/03/2009 12:11 PM To: <noah_mendelsohn@us.ibm.com>, "'XML4Pharma'" <info@XML4Pharma.com> cc: "'C. M. Sperberg-McQueen'" <cmsmcq@blackmesatech.com>, "'Dennis Sosnoski'" <dms@sosnoski.com>, <xmlschema-dev@w3.org> Subject: RE: Escalation mechanism for different interpretation of W3C XML-Schema specification ? > > So JSON may be a good alternative. > > I would never discourage you from looking for the best > language to meet your needs, and JSON is in many respects > simpler than XML. That said, keep in mind that JSON is > fundamentally aimed at what we informally call "data", I.e. > roughly the sorts of things that fit well into a Java, C, or > (of course) Javascript structure. When XML was first conceived, I think most people expected it to be used primarily for documents (I had heard people talking about using SGML for data in the 1980s, and I thought they were nuts). It's interesting to review why XML proved successful as a data interchange format even though it wasn't primarily designed for that role. * XML was very cheap to implement (cost of writing tools, cost of buying tools, cost of putting them to good use) * For some reason I have never understood, XML had no serious competition, and had universal endorsement from all influential players * XML filled a gap. Many people with data interchange problems had devised custom solutions at layer 6 of the stack, and they all involved a lot of effort to maintain, and no generic tooling was available. These solutions often failed to solve the character sets problem. Other people had adopted ASN.1, which was unaffordable by the masses ($100K for a parser). * XML was genuinely open and platform-independent: people trusted the independence of the authority responsible for the specification, and there was neither an explicit nor a covert bias to particular operating systems, vendors, or programming languages. And there were no doubts about what was or was not valid XML (as there are with JSON). * For the first time in the history of computing, people were finding that documents and data could no longer be kept separate. People were building web sites in which information, entertainment, and transactions needed to be seamlessly mixed. * The high level of redundancy in XML, which we love to complain about, proved a winner in making it easy to formats to evolve gracefully. If JSON had been around before XML, the first three arguments would have been far less compelling. But the others would still have been strong. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
Received on Saturday, 3 October 2009 16:31:26 UTC