[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Not using mixed content? Then don't use XML
While we allow for mixed content in MLHIM (www.mlhim.org) we do discourage it. In general, free text is not computable for decision support. That is why we provide complexTypes to carry metadata about the free text entries. JSON is not nearly robust enough to do the validation and logic processing that we can do with XML Schema 1.1 If you want to use JSON for message data formats, be my guest. But if you want to know you are receiving valid data against a reference model, JSON alone can't do it. I agree with Michael Kay. In a complex domain with many different entities needing to validate the same data, you need the robustness of XML. IMHO, if you are thinking that XML is only useful for flat documents then you are living in a geocentric (information) world. Cheers, Tim On Sun, Mar 24, 2013 at 7:50 AM, Simon St.Laurent <simonstl@simonstl.com> wrote: > On 3/24/13 6:10 AM, Michael Kay wrote: >> >> As far as I can tell, JSON (like CSV) is used almost entirely for >> private data interchange between consenting applications, not for >> standardised data formats. (I'm pleased to be corrected if I am wrong). > > > As it turns out, the world needs infinitely more formats for private (and > internal) data interchange than it needs standards for universal > interchange. Most of XML's advantages for creating such standards, most > notably its endless obsession with schemas, turn out to be dead weight for > private interchange applications. > > There are also piles of public APIs using JSON. Programmable Web and > similar places keep showing growth in JSON-based APIs. See, for example: > > <http://blog.programmableweb.com/2012/12/17/leading-apis-say-bye-xml-in-new-versions/> > > I'll stick to my "mixed content is XML's only genuinely useful advantage" > argument. (And there are, of course, other ways to get to mixed content.) > > Thanks, > > -- > Simon St.Laurent > http://simonstl.com/ > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@lists.xml.org > subscribe: xml-dev-subscribe@lists.xml.org > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|