RE: LPTSTR to DOMDocument

2004-07-22 Thread Alberto Massari
Hi Alexander, At 12.37 22/07/2004 +0200, Alexander Broekhuis wrote: Hi, I wrote an ErrorHandler, and get an error on line 2 char 1. The string I use is a wstring: wstring record = L"\n"; record += L"\n"; record += L"\n"; record += L"\n"; When I want to parse it I create a Me

RE: LPTSTR to DOMDocument

2004-07-22 Thread Alexander Broekhuis
Hi, I wrote an ErrorHandler, and get an error on line 2 char 1. The string I use is a wstring: wstring record = L"\n"; record += L"\n"; record += L"\n"; record += L"\n"; When I want to parse it I create a MemBufInputSrc. The fSrcBytes contain the complete string. Why can'

RE: LPTSTR to DOMDocument

2004-07-21 Thread Adam Heinz
throw SAX, XML and DOM exceptions. Adam Heinz Senior Software Developer Exstream Software -Original Message- From: Alexander Broekhuis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 4:15 AM To: [EMAIL PROTECTED] Subject: RE: LPTSTR to DOMDocument What I meant is, if the

RE: LPTSTR to DOMDocument

2004-07-21 Thread Alexander Broekhuis
(), szFilename, szMessage); > } > catch (...) { > m_pLog->Write(ERR_IMPORT_UNKNOWN); > } > > Adam Heinz > Senior Software Developer > Exstream Software > > -Original Message- > From: Alexander Broekhuis [mailto:[EMAIL PROTECTED

RE: LPTSTR to DOMDocument

2004-07-20 Thread Adam Heinz
ly 20, 2004 12:44 PM To: [EMAIL PROTECTED] Subject: RE: LPTSTR to DOMDocument Is that error a DOMException? I allready catch DOM/SAX and XML exception. Do I need a DOMErrorHandler to be able to catch a DOMException? I will write a DOMErrorHandler, was planning to do, but came across thi

RE: LPTSTR to DOMDocument

2004-07-20 Thread Alexander Broekhuis
ailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 10:44 AM > To: [EMAIL PROTECTED] > Subject: RE: LPTSTR to DOMDocument > > > Hi Adam and Alberto, > > You are right concerning that first char. But why does my program throw an > exception when it wants to parse th

RE: LPTSTR to DOMDocument

2004-07-20 Thread Alberto Massari
b, 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

RE: LPTSTR to DOMDocument

2004-07-20 Thread Adam Heinz
ent: Tuesday, July 20, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: RE: LPTSTR to DOMDocument 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? If i catch the exception with VS it says this: First-chance exception

RE: LPTSTR to DOMDocument

2004-07-20 Thread Alexander Broekhuis
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. >

RE: LPTSTR to DOMDocument

2004-07-20 Thread Adam Heinz
;. 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 Thi

Re: LPTSTR to DOMDocument

2004-07-20 Thread Alberto Massari
At 16.02 20/07/2004 +0200, Alexander Broekhuis wrote: Hi, >>At the moment I am trying to use this: >> >>MemBufInputSource *memBufIS = new MemBufInputSource((const XMLByte*)xml, >>wcslen(xml), "xmlRecord", false); // In this lin

Re: LPTSTR to DOMDocument

2004-07-20 Thread Alexander Broekhuis
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

Re: LPTSTR to DOMDocument

2004-07-20 Thread Alberto Massari
Hi Alexander, At 15.24 20/07/2004 +0200, Alexander Broekhuis wrote: Hi, I have a LPTSTR and want to create a DOM Document from that string. I use a LPTSTR for unicode chars. At the moment I am trying to use this: MemBufInputSo