string XMLCh_to_string(const XMLCh* in) { char* s = XMLString::transcode(in); string r(s); XMLString::release(&s); return r; }