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

Re: Nested Documents (was: XML 2.0)

  • From: John Snelson <john.snelson@o...>
  • To: Michael Kay <mike@s...>
  • Date: Wed, 27 Feb 2008 09:36:56 +0000

Re:  Nested Documents (was: XML 2.0)
The argument against having multiple document elements really holds no 
water - you can't tell that XML documents have finished because the 
document element has ended, since there can be an unlimited number of 
significant processing instructions and comments following it. Therefore 
the supposed benefit of using XML with unreliable transports or storage 
mediums is non-existent.

John

Michael Kay wrote:
> 
>  > Doesn't seem like a good tradeoff just to read logfiles, especially 
> when there's already work-arounds (which don't make the world catch on 
> fire). 
>  
> I don't see how you can tell what's a good tradeoff without 
> knowing anything about the cost of development or the cost of failure, 
> which are both highly variable by project.
>  
> The right tradeoff for me on a couple of projects has been to use the 
> workaround where log entries are added to a file containing a sequence 
> of elements with no outer wrapper, and that file is read by referencing 
> it as an external entity inside a document entity that serves merely to 
> add the wrapper. That gives me as much reliability as I need (which on 
> these projects is not that much) and more development inconvenience than 
> I want. I could get the same level of reliability without the 
> inconvenience if the spec allowed me to parse the 
> unwrapped-list-of-elements directly - so the restriction in the spec is 
> buying me nothing, therefore it can't be a good trade-off.
>  
> In any case, if the process writing the file fails with a disk-full 
> error, and I want the system to be resilient to this, then surely I 
> should deal with the disk-full exception, rather than by assuming that 
> the failure will leave the file in an unreadable state?
>  
> Michael Kay
> http://www.saxonica.com/
> 
> 


-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


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