RE: binary data in an XML file

2002-02-07 Thread Erik Schroeder
http://www.w3.org/TR/REC-xml#charsets Perhaps you could encode the data in BASE64? -Original Message- From: Ranjana Srivastava [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:36 AM To: [EMAIL PROTECTED] Subject: binary data in an XML file I have a file that has some bin

RE: Debug Assertion Failed

2002-01-22 Thread Erik Schroeder
Make sure your project is using the same runtime as the Xerces DLL. If you are using a release build of the DLL, then your project's _release_ build should be set to Multithreaded DLL (Project settings | C/C++ tab | "Code Generation" category | "Use run-time library" setting); the project's _debu

RE: parsing an empty xml file

2001-12-11 Thread Erik Schroeder
Title: RE: parsing an empty xml file I get the following when I try to parse a 0 byte file using SAXPrint and SAXCount, Xerces 1.4, on NT4.0.   C:\Temp>saxprint c:\temp\empty.xml   Fatal Error at file c:\temp\empty.xml, line 1, char 1  Message: The main XML document cannot be empty -O

RE: problem with DOMString::transcode

2001-11-09 Thread Erik Schroeder
Check the FAQ. You are mixing runtimes. -Original Message- From: nacho [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 11:53 AM To: XERCES C list Subject: problem with DOMString::transcode Hi, I'm having a problem while using this method in a little example I wrote in MSVC.

RE: Problem with new SAXParser again

2001-11-02 Thread Erik Schroeder
Aren't the calls to XMLPlatformUtils::Initialize() and XMLPlatformUtils::Terminate() reference counted? So it would be more accurate to say something like [and this is horribly rough] "one should not call XMLPlatformUtils::Initialize() after calling XMLPlatformUtils::Terminate() the same number o

RE: Parse a huge file, piece by piece

2001-09-06 Thread Erik Schroeder
Try progressive parsing. Check out the PParse sample; also check out SAXParser::parseFirst and SAXParser::parseNext. -Original Message- From: Feng Tian To: [EMAIL PROTECTED] Sent: 9/6/01 5:36 PM Subject: Parse a huge file, piece by piece Hi, I got a question when use XML4C. I got a h

RE: Sax2 parser crashes in the middle of a parse. Works once, fails, once, fails, definite pattern.

2001-09-01 Thread Erik Schroeder
Sounds like you are calling XMLPlatformUtils::Initialize(), doing the parsing, then XMLPlatformUtils::Terminate(), over and over again in the same process. Don't do that. See http://xml.apache.org/xerces-c/faq-parse.html#faq-25 ! --- Additional Comments From [EMAIL PROTECTED] 2001-09-01 16

RE: Static build on win32

2001-08-30 Thread Erik Schroeder
Not sure about the best way to bring this up, but isn't the buffer returned by transcode() allocated with new[]? If so, the proposal is flawed, since it is using free() and not delete[]... If this type of "solution" is chosen to be implemented, maybe it would be best to localize the solution a b

RE: HELP! Page faults, when running DOMParser on windows NT

2001-08-19 Thread Erik Schroeder
This is an interesting query, since it doesn't seem to be a concern of many (any other?) people. This may seem strange, but would you care to elaborate by explaining what your definition of a page fault is, and why you are concerned about them? What tool are you using to measure paging operation

RE: DOMString == string

2001-08-17 Thread Erik Schroeder
>>> Why is there bool operator== (const string& str_)const >> Are you sure that there is? I thought that there was no use of >> std::string in Xerces-C? In the DOMString class? >Sorry, it should have said why _isn't_ there Seems like this has been already addressed in responses to a prio

RE: Xerces 1.5.1 with MFC

2001-08-07 Thread Erik Schroeder
orts (if, indeed, the desire is to satiate those who worry that their Favorite Tool reports leaks...)? -Original Message- From: Ing. Hans Pesata [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 4:36 AM To: Erik Schroeder Subject: Xerces 1.5.1 with MFC Hi ! sorry if I contact you d

RE: problems with Xerces 1.5.1 within MFC-app

2001-08-04 Thread Erik Schroeder
Hi, >>I also realized, that if I just remove XMLPlatformUtils::Terminate(), there are a lot more memory-leaks: Yes; Terminate was added to eliminate the reports of memory leaks by various tools; my take on it is that it basically cleans up a bunch of static data that is initialized / alloc'd and

RE: problems with Xerces 1.5.1 within MFC-app

2001-08-04 Thread Erik Schroeder
I take it then, that if you remove the calls to XMLPlatformUtils::Initialize() and XMLPlatformUtils::Terminate(), and you don't load your extension DLL, the memory leaks aren't present? Presumably, you downloaded the Xerces DLL - you didn't build it - so can you verify that the runtime library

RE: why include both dll and lib

2001-08-02 Thread Erik Schroeder
The .lib, in this case, is not a "standard" static library, but an import library. Import libraries contain information about exports in other programs (in this case, the Xerces DLL). The Xerces DLL exports numerous classes that your application imports... This is pretty typical of Windows DLLs.

RE: HELP!

2001-07-18 Thread Erik Schroeder
Can you paste the _exact_ linker error? "_declspec(dllimport) public: ..." Doesn't say much. ×¿× Erik ©** -- Thought for the day/week/month/year:* PRO BOZO PUBLICO (Support your local clown.) -Original Message- From: Barry Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday

RE: Problems with Xerces 1.5 and buiding a DLL

2001-07-12 Thread Erik Schroeder
Is m_domParser a member variable of a _global_ object within the DLL? Perhaps its constructor is called prior to XMLPlatformUtils::Initialize(). You are calling XMLPlatformUtils::Initialize(), right? What happens if you change the member var to be DOMParser* m_domParser, and then "new" the DOMPar

RE: Stopping in the middle of a parse

2001-07-11 Thread Erik Schroeder
Throw an exception from within your document handler when it is time to prematurely end the parse. -Original Message- From: Williamson, Siehnai To: '[EMAIL PROTECTED]' Sent: 7/11/01 3:45 PM Subject: Stopping in the middle of a parse Hi, How do you prematurely end parsing, using the

RE: access violation problem !!

2001-06-20 Thread Erik Schroeder
Has XMLPlatformUtils::Initialize() been called prior to the construction of the object? -Original Message- From: anand awasthi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: access violation problem !! Hi, may be that this question is

RE: DOMParser does not report errors for XML that are not well-fo rmed

2001-06-19 Thread Erik Schroeder
Install an error handler, much like you installed a document handler. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 12:27 PM To: [EMAIL PROTECTED] Subject: RE: DOMParser does not report errors for XML that are not well-fo rmed Peter,

RE: Xerces and DLL?

2001-06-18 Thread Erik Schroeder
Erik, This may be a strange request, and I'm sorry to bother you, but for some reason I have had difficulty getting through to the Xerces list as of late. If this fails to make it to the list, would you mind posting it for me? Thanks, Erik - Perhaps

RE: memory use / DOM

2001-04-18 Thread Erik Schroeder
This may be a dumb question, but... You say you "set both documents to NULL and create new ones for each "transaction"". Do you "delete" the documents prior to setting them to NULL? -Original Message- From: Uthus Ivan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 1:52 AM To: