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

Re: Why XML?


cobol start
Matthew.Bennett@f... wrote:
> Hi All,
/snip/
> Two things make me wonder about the competence of those who designed XML.
> 1. If you wanted to keep it comprehensible, why invent nonsense like
> attributes? What can they do that nested elements can't? W3C has violated a
> first-order principle of language design; that there should only be one way
> of doing something, such that everyone ought to devise the 'same' program

Why should this make you question the competence of those who worked to define XML? 
They didn't invent attributes, and even if they had I don't see why they should be constrained by a dogma that there should only be one way of doing something. There are plenty of counterexamples in which robust systems, both natural and synthetic, display multiple ways of expressing a relationship or accomplishing a result. It was clear at the time that there were simple pragmatic considerations that made their choice to adopt SGML syntax a no-brainer. In any case, hypothesizing about what they should have done then is like pushing a rope.

> to solve the 'same' problem. COBOL obviously is the grossest offender in
> this regard, but XML's scarcely any better. And 2. If a start tag must have
> a matching end tag, what purpose is served by that ridiculous slash in an
> end-tag

But XML doesn't solve problems. It is only when constraints are placed upon XML to define a markup language, and implementations are built, that any problems are solved. And any problems you solve with one implementation are likely to have nuanced differences that will lead over time to multiple ways of "doing something".  I don't see tossing out attributes as being any big win. Though it is wishful thinking, I'd much rather see an unbounded number of orthogonal structures than to see only one. Guess I'll just have to wait for LMNL for that. 

If you have this:

<doc>
<start><start>1<start><start>
<doc>

In which element is 1?

Regards,

Mitch Amiano

> Cheers,
> Matt Bennett
> 
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 



  • References:

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.