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

RE: XML 2.0

  • From: "Rick Jelliffe" <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Mon, 25 Feb 2008 05:39:02 +1100 (EST)

RE:  XML 2.0
What is the difference between a document with multiple roots and a
document with a single root?  One start tag and one end tag.

What is the benefit of forcing a single root? Catching errors where the
document ends prematurely but on a /*/* boundary.

In SGML/HTML, where there is tag omission, having a single rooted document
was an absolute necessity. XML does not have this, because of the WF
rules. However, the value that a multi-rooted documents gives seems so
slight as to be non-existent. All multi-rooting does is push the
requirement for checking that a transmission has completed successfully to
the next lower layer of the protocol stack, and it is something that needs
to be proved that the next lower layer (e.g. HTTP) does correctly handle
the kinds of incorrect document terminations that XML's single root model
does, surely.

Cheers
Rick Jelliffe

Michael Kay said:
>> A corollar of having multiple roots in one document is to
>> define a syntax for naming multiple father-children relations.
>>
>> As with a database, each element should be accessible
>> directly (efficient use of '//element') while oriented
>> relations (child to father or father to children) are used to
>> access other elements.
>>
>> With XML 1.0, we have to add id attributes to implement this
>> and there is no specific syntax. XML 2.0 should develop a
>> richer syntax for axes.
>
> Sounds like you're reinventing the network (Codasyl) model. It's about
> time
> it had a revival. I think you're right - the strict hierarchical approach
> of
> XML is fine for messages and for documents, but it really isn't ideal for
> persistent data. The poor handling of relationships outside the hierarchy
> has always been a weakness.
>
> Michael Kay
> http://www.saxonica.com/
>
>
> _______________________________________________________________________
>
> 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@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


  • Follow-Ups:
  • References:

[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

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.