[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

  • From: Liam R E Quin <liam@w3.org>
  • To: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Mon, 25 Mar 2013 09:42:54 -0400

Re:  Not using mixed content? Then don't use XML
On Sun, 2013-03-24 at 09:09 -0400, Simon St.Laurent wrote:
> [...] geodata is where I first encountered the massive headaches 
> induced by XML's overhead and a severe mismatch between the constraints 
> that the designers of schema languages thought useful and the 
> constraints that developers actually needed...

In general XML makes life harder for developers, not easier, compared
with formats designed by developers.

In general XML makes life easier for document designers and people
working with (textual) documents, not harder, compared with other
formats.

This isn't only about mixed content, it's about whether the text is
primarily maintained by people or by programs.

XML APIs, in general, [expletive deleted] really really badly for developers.
But (a big but) working in XQuery, XPath, XSLT, can help considerably.

Believe it or not, there are still tons of people who use the XML DOM
API. No wonder they hate XML.


> (And yes, JSON has schemas, and programmers have other forms of testing 
> data validity, and... no, XML has no innate advantage here.)

The XML Schema languages tend to focus on business-level constraints.
The JSON ones I've seen tend to be more about data binding and typing -
you can say the socksize item must be a number between 4 and 92, with no
more than one decimal place, but not so easily that "material" must be a
fabric and retain that information after loading the JSON data.

So yes, JSON fine for machine-machine transfer of geo data, especially
when you control the applications at both ends.  XML was designed for
technical documentation, where it still excels, or for cases where you
don't control the receiving application and in fact don't know anything
about it.

JSON has fabulous APIs for programmers, and as long as programmers are
in charge of the temple, the writers, editors, indexers, the people
working with text, are required to be Believers. But one day there will
be a Revelation and a Revolution.  We will burn the sandals of the
priests on the altar we dedicate to primacy of our texts over the
accursed programs.

:-)

Best,

Liam


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml



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