Hi Adam and Alberto,
You are right concerning that first char. But why does my program throw an exception when it wants to parse the xml?
Did you change the MemBufInputSource to have the length correctly computed? Otherwise you are telling him that it should read just half the buffer, and you will get for sure an exception of "broken XML".
Alberto
If i catch the exception with VS it says this: First-chance exception at 0x7c57e592 in TestApp.exe: Microsoft C++ exception: xercesc_2_5::XMLErrs::Codes @ 0x0012f048.
What can be wrong?
Alexander
Adam Heinz said: > 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] >
--------------------------------------------------------------------- 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]