Thanks, so you mean Xerces internally reallocate new buffers...

Other question about removeChild ... just to be sure ...

When I do a DOMNode* pnodetoRelease = pNode->removeChild(*it);

Is the pnodetoRelease still released when I call the DOMDocument release method or it is really orphaned?


At 14:51 13/04/04 +0100, you wrote:
Hi,
        you have to delete it.

Gareth

On Tue, 13 Apr 2004, Sylvain Duval wrote:

> Hi all,
>
> Small question about memory management :
>
> When I do a setAttribute like this on a DOMElement :
>
> XMLCh* Name;
> chName = XMLString::transcode("synchro");
>
> XMLCh* chValue;
> chValue = XMLString::transcode("attValue");
>
> ((DOMElement*)pNode)->setAttribute(chName, chValue);
>
> Do I have to release the XMLCh* or this memory will be used in the DOM tree
> in memory?
>
> XMLString::release(&chName);  ???
> XMLString::release(&chValue); ???
>
> Thanks for your help.
>
> Sylvain.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Gareth Reakes, Managing Director            +44-1865-811184
Parthenon Computing                http://www.parthcomp.com




--------------------------------------------------------------------- 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