title: convert unsigned char* to std::string
body: <p>I am little poor in typecasting. I have a string in <code>xmlChar*</code> (which is unsigned char*), I want to convert this unsigned char to a <code>std::string</code> type.</p>
  <pre><code>xmlChar* name = &quot;Some data&quot;;
  </code></pre>
  <p>I tried my best to typecast , but I couldn't find a way to convert it.</p>