Boris Glawe wrote:

Hi,

do I have to release a string that is created like this:

DOMElement* element = doc->CreateElement(XMLString::transcode("anElement"));

I don't know, whether element saves the pointer that's returned by transcode anywhere. Releasing does not make sense then, since the (pointer to the) string is still needed.
And is the XMLString* released anywhere, when I say element->release()?? if not, how do I release the string then.


greets and thanks Boris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



I read the answer already in a posting from last June... According to this posting my implementation is a bad thing, since my XMLString will never be released.
puh xerces is really hard to handle from the technical point of view for newbies.
This create and release stuff adds a lot code which is not semantically connected with the program itself and makes it thus harder to read.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to