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

Re: List of differences between XML and JSON?

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: ihe.onwuka@gmail.com
  • Date: Thu, 30 Apr 2015 11:17:10 -0400

Re:  List of differences between XML and JSON?
On Thu, 30 Apr 2015 11:01:48 -0400, Ihe Onwuka wrote:
> On Thu, Apr 30, 2015 at 10:53 AM, Amelia A Lewis <amyzing@talsever.com>
> wrote:
>>> -          XML has namespaces, JSON does not.
>> 
>> Win for JSON.
> 
> Is it?
> 
> How would you represent (insert some complex namespacey markup language
> here) in JSON then?

I wouldn't.

*sigh*

I also wouldn't try to represent mixed content in JSON. *shrug*

XML namespaces is intended to allow arbitrary mixes of namespaces. It's 
not much used for that, but that's why it has the complexity that it 
has, to support the generality that it's supposed to permit. A better 
solution, in my opinion/experience, would be to design a vocabulary 
that merges the target vocabularies as needed.

As a general rule, XML that rebinds the global/empty prefix is less 
horrendous than XML that makes extensive use of specific prefix 
bindings. This isn't the case for things like XML schema, XSLT, and 
other technologies which were specified in the full flush of Namespaces 
in XML 1.0. Avoiding namespaces in XML is generally a good thing.

For JSON, I'd definitely recommend some solution less painful than one 
modeled on XML namespaces, if there's a need for it. I haven't seen 
anyone suggesting such a need, though of course I'm not omniscient on 
that score.

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
But pain ... seems to me an insufficient reason not to embrace life.  
Being dead is quite painless.  Pain, like time, is going to come on 
regardless.  Question is, what glorious moments can you win from life 
in addition to the pain?
   -- Cordelia Naismith Vorkosigan [Lois McMasters Bujold, "Barrayar"]


[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.