I'm using xerces-c++ I don't seem to really get the use of XMLString::release ( XMLCh ** buf)
so right now I'm using it every time I want to reuse a local variable like this:
XMLCh* xmlStringVar = XMLString::Transcode("name");
XMLCh* fieldName = fieldsNodeList[NbreFlds]->getAttribute(xmlStringVar));
XMLString::release(&xmlStringVar);
xmlStringVar = XMLString::Transcode("id");
XMLCh* fieldId = fieldsNodeList[NbreFlds]->getAttribute(xmlStringVar));
please correct to me this code if something is wrong and if you got a clearer description of the function XMLString::release
please inform me.