E
eagle_speaks
I am posting this for reference so that some may find it usefull
---------------------------------------
XML transcode - XMLCh to char
void CADCXMLEventHandler::startElement(
const XMLCh* const uri,
const XMLCh* const localname_parameter,
const XMLCh* const qname,
const Attributes& attrs)
{
std::auto_ptr<char> localname
(XMLString::transcode(localname_parameter))
----------------------------------------
XML transcode - CString to XMLCh
CString csFilePath(_T("Test Path"));
char szDest[MAX_PATH+1];
WideCharToMultiByte( CP_ACP, 0, (LPCTSTR)csFilePath, -1,
szPathdest, MAX_PATH, NULL, NULL );
std::auto_ptr<XMLCh> xchFilePath (XMLString::transcode(szDest));
m_source =new LocalFileInputSource(xchFilePath .get());
----------------------------------------
---------------------------------------
XML transcode - XMLCh to char
void CADCXMLEventHandler::startElement(
const XMLCh* const uri,
const XMLCh* const localname_parameter,
const XMLCh* const qname,
const Attributes& attrs)
{
std::auto_ptr<char> localname
(XMLString::transcode(localname_parameter))
----------------------------------------
XML transcode - CString to XMLCh
CString csFilePath(_T("Test Path"));
char szDest[MAX_PATH+1];
WideCharToMultiByte( CP_ACP, 0, (LPCTSTR)csFilePath, -1,
szPathdest, MAX_PATH, NULL, NULL );
std::auto_ptr<XMLCh> xchFilePath (XMLString::transcode(szDest));
m_source =new LocalFileInputSource(xchFilePath .get());
----------------------------------------