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

Re: What are the practical, negative consequences ofthinking t

  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 16 Feb 2017 10:05:56 -0500

Re:  What are the practical
Thomas and Rick summed it up pretty well, except that I no longer think XML is a great choice for storing records either.

The story I tell these days is that XML started out as a brilliant effort to simplify SGML, a tool that was built for working with documents. In that context the element/attribute/content/attribute value distinctions at least usually make sense, and the verbosity of markup is a reasonable tradeoff in a flow of text meant for (at least occasional) human eyes.

Unfortunately, XML's appearance on the scene reminded developers of the insanely terrible data exchange systems they'd previously built, and seemed to offer a different path from past disasters. For smallish quantities of data, the verbosity tradeoff wasn't bad, and having a format more non-programming humans could comprehend was helpful.

XML was a mediocre solution for data that was slightly better than the awful that came previously. Unfortunately that "slightly better" meant that developers all wanted to pile in with the awful to make it familiar. XLink vanished from the agenda, replaced by ever more intricate schema, transformation, and query languages. Programmers frequently found that the information modeling approaches of the markup document community didn't apply to their work, and often set off to create even worse formats that happened to talk with code they already had. (Yes, Apple. I'm talking about your plists.)

After a while, many developers realized that this XML thing really wasn't for them. I was delighted when JSON appeared, not because it was a perfect solution but because it hit a different point of mediocrity that leaned more toward what programmers really wanted, and could conceivably let XML do the things which XML's markup approach fits.

(I am somewhat amused that functional programming approaches that boggled people's minds in XSLT 1.0 are suddenly kind of hot, and in the JavaScript world that largely happened through the evangelism of JSON's creator, but the approaches work well even when the data formats change.)

Unfortunately, I think that freedom came too late. Developers' image of XML as a verbose overly complicated mediocrity had overwhelmed the initial news of XML as simplification. Browser vendors turned against XML partly because of the growing complexity, but largely because it turned out that users didn't love the well-formedness expectations the browser vendors had asked for in the first place. HTML5 demolished it, and Web Components may finally provide the extensibility XML proponents discussed two decades ago, if they ever get traction. ("It's too much like XML" is a common way of dismissing them....)

XML still works beautifully, if you apply it to the experience from which it emerged: documents. It works far better if you can forget the weight loaded onto it by a decade and a half of developers trying to make it fit a space it was never going to handle gracefully. XML can work for some lightweight data storage and messaging, but somehow that rarely stays "light".

So yes, there are practical negative consequences of thinking that attributes are metadata, but they tend to be more the result of the practical negative consequences of thinking that markup is a great place to store structured data.

Thanks,
Simon

On 2/16/2017 8:59 AM, Thomas Passin wrote:
I still see using XML for little transient Domain Specific Language (DSL) type jobs. That's largely because you can transform the data with xslt. Now that json is coming to xslt (with version 3.0), maybe I'll feel like starting to use json instead... we'll have to wait and see.

On 2/16/2017 8:32 AM, Rick Jelliffe wrote:
  Here is kinda how I see it. How do others see it?
*
*
*               |          Fields       |    Literature*
--------------------------------------------------------------
*Ephemeral*      | i.e. messages: JSON   |     HTML
--------------------------------------------------------------
*Stored *        | i.e. records: XML+XSD |     XML

Rick


_______________________________________________________________________

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!

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.