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

RE: Managing Innovation


programs that create programs
At 5:40 PM -0400 10/2/03, David Megginson wrote:


>I understand that argument well, but in this case, we're not talking
>about limiting the overall length of XML documents.  Let's try not to
>imagine only the present, but the future as well -- can anyone make a
>reasonable case for an XML element or attribute name longer than 4096
>characters (for example)?


I would not be surprised to see such a thing pop out of some program 
that generates element names using an algorithm. Programs that create 
programs are notorious for finding bugs in compilers that had 
implicit assumptions about what code would look like, often involving 
length of variable names or maximum line length. I wouldn't be 
surprised to see programs that generate XML overflow a few boundaries 
in XML parsers.

There are definitely parts of most APIs that are length limited. For 
instance,  SAX can't handle a comment, an attribute value, or a 
processing instruction  longer than 2.1 gigabytes. Think, for 
example, of a Base-64 encoded movie shoved in an attribute value. 
Completely legal for XML, but SAX can't handle it.
-- 

   Elliotte Rusty Harold
   elharo@m...
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA

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.