Hi,
My extended question is what is the parser limit. I have 3 MB worth of data followed by an entity & and again some data. I did get 3 MB of data in one call to characters(so I assume it should be atleast > 3 MB). What is the standard buffer size used within xerces. Can this figure be configured.


Thanks
Kiran


From: Neil Graham <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Question on SAX output
Date: Fri, 30 Apr 2004 17:02:18 -0400






Hi Kiran,


Your assumption is correct.  Xerces-C won't spend its time growing
character arrays so it can put the complete contents of very large elements
in one place.

The SAX spec allows parsers complete freedom about where they split element
contents.  So there really isn't a "general", cross-parser rule here.

Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]





"Kiran BV"
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
otmail.com> cc:
Subject: Question on SAX output
04/30/2004 04:48
PM
Please respond to
xerces-c-dev






Does the SAX parser always return all data for an element when the
characters() call is made. It seems that it returns all data until the end
of its tag or the start of another element or at some entity.

What is the general behaviour here. If I have a 10MB of data for an
element,
does xerces allocate 10MB to call characters(). I was assuming that
depending on the memory usage it will be split into chucks of data and many

characters() calls would be made. Is my assumption wrong. Would this not
cause a memory/performance bottleneck.

Thanks
Kiran

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page � FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to