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.
There are alternatives to using transcode; in this case, you are dealing with a constant, so you are could do it off-line.
Examples:
(on Visual C++) DOMElement* element = doc->CreateElement(L"anElement");
(everywhere)
static XMLCh anElementName[]={chLatin_a, chLatin_n, ....};
DOMElement* element = doc->CreateElement(anElementName);Alberto
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
