This is a follow on to my previous discussion on dealing with multiple
TEXT nodes under an element node. I gather I need to concatenate them
together. 

The method for accomplishing this is what I am considering. One approach
is to have a real large internal XMLCh buffer and use
XMLString::catString to build up the final string. The big issue with
this option is that you have an arbitrary size limit to the max string
you can handle. 

The second approach to dynamically allocate and reallocate an array of
XMLCh's as I go. That will handle arbitarily sized strings, but will
also mean a lot more heap action. (not to mention a certain amount of
copying depending on the realloc method used).

Have I missed an obvious easy answer to the above ? 

Thanks for your time
Dale Pennington

Reply via email to