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]

Reply via email to