[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML vs JSON

  • From: Hans-Juergen Rennau <hrennau@yahoo.de>
  • To: Michael Kay <mike@saxonica.com>, Ghislain Fourny <gfourny@i...>
  • Date: Mon, 21 Aug 2017 10:42:25 +0000 (UTC)

Re:  XML vs JSON
Well, if your sentence ...
"The key difference is that JSON is designed to make it easy for programs to exchange data with each other, whereas XML is designed to represent documents."

must be read with "documents" meaning document-oriented (or narrative, or simply - mixed-content) XML, it does not make sense to me. (I have spent fifteen years with processing data-oriented XML, missing the point of XML's design?)

I propose this alternative:

"The key difference is that JSON is designed to make it easy for programs to exchange data with each other, whereas XML is designed to represent information."




Michael Kay <mike@saxonica.com> schrieb am 10:44 Montag, 21.August 2017:


>
> A document-oriented XML document looks more like an HTML page with mixed content, XHTML and docbook being two prominent examples:
>
> <paragraph>This is <bold>bold</bold> text and this is <italic>italic</italic> text</paragraph>

>


I like to say that the defining characteristic of pure document-oriented XML (I sometimes call it "narrative XML") is that if you remove the markup, you are left with meaningful human-readable text.

And I always felt that the reason XML became so popular was not its ability to handle pure narrative XML, but its ability to mix structured data and textual narrative in a single message. So often (consider a CV/resume) you want to handle both at the same time. XML thus brought document processing capability to the data processing masses; and by reverting to JSON, the data processing masses are saying "that's too difficult for us to cope with".

Michael Kay
Saxonica
_______________________________________________________________________

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@l...
subscribe: xml-dev-subscribe@l...
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.