News for hackers. Stuff that matters.
Re:In Defense of COS, or Why I Love JSON and Hate XML by billysilly on Sunday December 02, 2012 @02:56PM (#4862283)
"Come back to me when you are using json to encode an entire document"

How is that relevant to the article, which is about COS? In other words, what does COS lack what XML has?

Re:In Defense of COS, or Why I Love JSON and Hate XML by patrickg on Sunday December 02, 2012 @03:19PM (#4862358)
* Infrastructure (schema support - DTD, Schema, RelaxNG; transformation - XSLT) * No obvious document format (What encoding are the strings? How to escape characters? * Only used to describe predefined object types (boolean, strings, arrays, dictionaries * Hard to ensure the integrity of the data without interpreting the data from the interpreter itself (no external validation)
Re:In Defense of COS, or Why I Love JSON and Hate XML by rauar on Sunday December 02, 2012 @05:45PM (#4862888)
You know this can be done on top when you have demand for this? I prefer a non-bloated protocol format over XML anytime. How often does the DTD not matter at all ? How often is the encoding fixed by convention ? ...
Re:In Defense of COS, or Why I Love JSON and Hate XML by patrickg on Monday December 03, 2012 @02:39AM (#4864371)
I use schemas (in the form of RelaxNG most of the time) almost every time I deal with XML. Together with schematron you can make very complex lint-like scripts to verify your data. Actually I program in XML with a self created programming language (formulated in XML). This together with RelaxNG and a good XML makes it fun writing XML and absolutely (syntax-)error free.
Re:In Defense of COS, or Why I Love JSON and Hate XML by jimfuller on Sunday December 02, 2012 @03:15PM (#4862347)
I could just as similarly ask why the author even mentions XML ?