Hi, >>At the moment I am trying to use this: >>------------------------------------------------------------------------ >>MemBufInputSource *memBufIS = new MemBufInputSource((const XMLByte*)xml, >>wcslen(xml), "xmlRecord", false); // In this line xml is the LPTSTR that >>contains the xml. > > The MemBufInputSource works on buffers of XMLByte, so the length must be > in > bytes; wcslen returns the number of wchar_t (or XMLCh, on Windows), so you > need to multiply it by 2. Or, to be on the safe side, you should always > use > TCHAR-based code, like this > > MemBufInputSource *memBufIS = new MemBufInputSource((const XMLByte*)xml, > _tcslen(xml)*sizeof(TCHAR), "xmlRecord", false); >
This is an other problem then that i have, thx for the hint btw :), I changed that piece of code. The problem I have is the the XMLByte only contains the first char of xml. Alexander --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]