/*Here is how the code looks like*/

XercesDOMParser parser_;

do
 {

/*code to create a source file */

/*During the next iteration the following code will give runtime error*/


parser_.parse(source);


xercesc::DOMDocument* xmlDoc = parser_.getDocument() ;

/*code to parse the file source*/


/*code to delete the source file*/

/*I used the function which you suggested*/

parser_.resetDocumentPool();

}while(dwbytes==bufsize);
 /*some condition*/

Reply via email to