I'm guessing that you're looking at a Unicode string as if it's single-byte, so the second half of the first character is NULL and terminating your string. If you're using Visual C++ 6, you can do Tools->Options, Debug tab, and check "Display Unicode strings". Then cast your narrow XMLByte* to an XMLCh* and take a look.
Adam Heinz Senior Software Developer Exstream Software -----Original Message----- From: Alexander Broekhuis [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 10:02 AM To: [EMAIL PROTECTED] Subject: Re: LPTSTR to DOMDocument 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]