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

Re: Why XML?


xml orthogonality
Matthew.Bennett@f... wrote:

| I don't think [XML] has much of a role in data exchange. 

You may be right.  XML is better suited to the exchange of information
whose structure does not lend itself to a flat dataset representation.

| Two things make me wonder about the competence of those who designed XML.

RTFM is the recommended cure for speculating on competence from a position
of ignorance.

| 1. If you wanted to keep it comprehensible, why invent nonsense like
| attributes?

XML did not innovate attributes.  SGML had them.

| What can they do that nested elements can't? 

Carry information without misrepresentation of analytic structure.  The
element hierarchy is basically a set of nested "consists of" relations in
a direct parallel of parse trees (text at the leaves are "terminals", and
elements in the hierarchy are non-terminals structuring the terminals into
a coherent whole).  Ancillary or "meta" information is accomodated by the
attribute facility.

If you think of attributes and child elements as "equals" or substitutes,
chances are that you'll talk yourself into a poor design. 

| W3C has violated a first-order principle of language design; that there 
| should only be one way of doing something, 

Nonsense.  Orthogonality is for academic dreamers.

| And 2. If a start tag must have a matching end tag, what purpose is served 
| by that ridiculous slash in an end-tag?

Presumably you've never encountered a nested structure in your life.  Can
you decipher this structure according to your apparent solution?

  <section>
  <title>...<title>
  <para>...<para>
  <section>
  <title>...<title>
  <para>...<para>
  <section>
  <section>

(Indenting removed for "ease of comprehension").

That said, you missed the real critique.  GIs in endtags are redundant
unless tag omission is allowed (which is so in SGML, but not in XML.)


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