Re: Deleting a node in the memory...

2008-03-17 Thread Sree Harsha
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Sree Harsha Vardhana S.N When you want something, all the universe conspires in helping you to achieve it.

Re: Deleting a node in the memory...

2008-03-17 Thread Sree Harsha
Thanks a lot once again, but It not executing the statement ( I think it is giving rise to runtime errors), LNodeFileAddedElement-removeChild(LNodeAddedFileList-item(1)); On 3/17/08, Alberto Massari [EMAIL PROTECTED] wrote: Sree Harsha wrote: Thanks, quoteThe node will be actually

Re: Deleting a node in the memory...

2008-03-17 Thread Sree Harsha
in the LNodeAddedFileList.. Please help me... On 3/17/08, Alberto Massari [EMAIL PROTECTED] wrote: Sree Harsha wrote: Thanks a lot once again, but It not executing the statement ( I think it is giving rise to runtime errors), LNodeFileAddedElement-removeChild(LNodeAddedFileList-item(1

Adding a DOCTYPE to the created xml

2008-03-02 Thread Sree Harsha
Hi all, How can i add a DOCTYPE Declaration like !DOCTYPE name SYSTEM name.dtd [...] in my xml Newly created using CreateDOMDocument(); call?? How to use the DOMDocumentType variable to do this??? -- Thanks and Regards Sree Harsha Vardhana S.N When you want something, all the universe conspires

Re: Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-27 Thread Sree Harsha
Thanks Alberto, I used resetDocumentPool(), But I get a run time error R6025 pure virtual function call. Thanks and regards Sree Harsha Vardhana S.N On 2/27/08, Alberto Massari [EMAIL PROTECTED] wrote: Hi Sree, you should invoke resetDocumentPool(), not reset(). As for the code you posted

Re: Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-27 Thread Sree Harsha
Thanks for the tip on releasing the XMLstring memory ... there was a reduction in the use of memory... please tell me why i am getting an error when i resetDocumentPool(); I get a run time error R6025 pure virtual function call thank you On 2/27/08, Sree Harsha [EMAIL PROTECTED] wrote

Re: Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-27 Thread Sree Harsha
the file source*/ /*delete the source file*/ /*I used the function which you suggested*/ parser_.resetDocumentPool(); }while(dwbytes==bufsize); /*some condition*/ On 2/27/08, Alberto Massari [EMAIL PROTECTED] wrote: Sree Harsha wrote: Thanks Alberto, I used resetDocumentPool(), But I get

Re: Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-27 Thread Sree Harsha
/*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*/

Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-26 Thread Sree Harsha
file*/ /*what function should i call to reuse parser_ object in the next iteration so that memory consumption reduces */ }while(dwbytes==bufsize); /*some condition*/ -- Regards Sree Harsha Vardhana S.N When you want something, all the universe conspires in helping you to achieve it. -- Regards

Re: Please help me out with this code..Can i reuse DOM objects in a while loop??????

2008-02-26 Thread Sree Harsha
...() methods. Or, to be paranoid and/or lazy, you could use a new parser for each iteration. -- *From:* Sree Harsha [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, February 26, 2008 5:40 AM *To:* [EMAIL PROTECTED]; c-dev@xerces.apache.org *Subject:* Please help me out

Please help me out in this function

2008-02-24 Thread Sree Harsha
of Folders Created= CreateFolderCountstd::endl; } //std::cindwBytesWritten; }//if (outXmlFile)...end delete pTarget; delete pSerializer; delete outXmlDoc; delete outXmlDoctype; DeleteFile(szTempName); CloseHandle(hSourceFile); return ; } // load() -- Regards Sree Harsha Vardhana

Reusing a pointer to DOMElement*??

2008-02-15 Thread Sree Harsha
Regards Sree Harsha Vardhana S.N - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

giving the full path to the parser

2008-02-14 Thread Sree Harsha
.. } //Here is the problem .. when we give the path of the file to be parsed is in a different folder than the executable we have to give the full path to str. str is something like say C:\Documents and Settings\Sree Harsha\Local Settings\Temp\Newfile.xml when i give such a string the number of error is 1