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

Re: Array content model

  • From: "Nik O" <nikozu@m...>
  • To: xml-dev@x...
  • Date: Wed, 05 Apr 2000 13:41:03 -0600

xml that includes an array
On Wed, 5 Apr 2000 10:06:29    John.OSullivan wrote:
>
>[snip]
>However, my colleagues are unmoved by the ease of implementation
>argument, and prefer the gain in brevity from omiting the items tags.

IMHO, your colleagues are missing the point.  Major benefits of XML include both clarity in both data modeling and self-documentation.  The use of the <items> element type greatly eases implementation at a very, very small cost in characters.  It also provides some basic documentation ("there may be multiple items") within the XML document instances instead of requiring a look at the DTD/Schema for this info.

I have always used your approach for such problems, in part because i agree with the W3C's stated design goals for XML, which include:
  "4. It shall be easy to write programs which process XML documents." and
 "10.Terseness in XML markup is of minimal importance."
Of course, as a prog writing XML applications i also have a vested interest in ease of implementation!

If they're really worried about a few bytes, why are your element type names so meaningful?  They could be cryptic and abbreviated instead: <I> for <Item>, <PO> for <PurchaseOrder>, etc.  Or why not use a nice compact binary format instead of XML?  ;-)

Use of glib/zlib compression is widespread; storage and comm costs are plumenting.  Thus, it's hard for me to see a great advantage in shaving, at best, a dozen bytes from each of your XML messages, when many more than that are spent elsewhere in the same design.

Regards,
 Nik O



Send FREE April Fool's Greetings to your friends!
http://www.whowhere.lycos.com/redirects/American_Greetings.rdct

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.