Hi!

I am using the following function to retrieve
DOM-node values. But I want to return not (char *),
but a STL string value. How can I do it?

Sorry for that C++ newbie request.
Used to be a C programmer ....
:-)

TIA


#include <string>



static char *getNodeValue(DOMNode *node) { char *chNodeValue; const XMLCh *nodeValue;

   if (node)
   {
      nodeValue = node->getNodeValue();
      chNodeValue = XMLString::transcode(nodeValue);
      // cout << "  '" << chNodeValue << "' " << endl;
   }
   return(chNodeValue);
}  // getNodeValue()


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



Reply via email to