W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

Re: Wrapping CSV format data in XML

From: <Noah_Mendelsohn@lotus.com>
Date: Mon, 5 Mar 2001 10:47:03 -0500
To: Mike_Leditschke@nemmco.com.au
Cc: xmlschema-dev@w3.org
Message-ID: <OF08B1D811.90B445C4-ON85256A06.00575637@lotus.com>
Mike_Leditschke writes:

>> Are there any limits on the size of the string? 
>> I'm looking about 1Mb of CSV data per document, 
>> so would end up with a single string element
>> containing about 1Mb of text.

No limits.  With rare exceptions, XML schema avoids putting fixed bounds 
on sizes, numbers, etc.  The model is that limitations imposed by 
particular processors are modeled in the same way that one tends to 
consider a variety of resource limitations, such as "disk full" in a file 
system.  Think of a programming language like C or Java.  There is nothing 
in the language that says "your source code must be less than 10 MB", but 
there probably is some program size at which your compiler or run-time 
would choke due to lack of resources.  Formally, if your processor gives 
up future resource constraints, the schema specification presumes that 
there has not in fact been an assessment (validation) episode, just as 
your programming language would probably not consider a compilation to 
have taken place if the compiler gives up halfway through. 

I would consider an implementation that had trouble with sizes anywhere 
near as small as1 MB to be very badly broken, except perhaps if running on 
a very small device (cellphone, wristwatch, etc.).  You should be fine.

------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------
Received on Monday, 5 March 2001 11:01:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT