You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by harshabi <sr...@gmail.com> on 2008/02/26 05:16:45 UTC

Can i reuse DOM objects in a while loop??????

/*Can i reuse the DOM objects like XercesDOMParser object in a do... while
loop as follows.... or will it cause any memory leaks how to reuse them...we
can't possibly have 1 billion DOMElement* objects to parse a file with 1
billion DOMElements Please help me out with this atleast */
do
{

/*create a source file */

parser_.parse(source); //parser_ is a XercesDOMParser object

/*parse the file source*/

/*delete the source file*/

}while(dwbytes==bufsize);
/*some condition*/
-- 
View this message in context: http://www.nabble.com/Can-i-reuse-DOM-objects-in-a-while-loop-------tp15674582p15674582.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org