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]



Reply via email to