Re: SAX performance observations

2001-10-03 Thread Dean Roddey
Better yet, get something like True Time or VTune or other such performance testing tools. You'll be likely to find the low hanging fruit quickly and get the most bang per time spent. We used to use VTune pretty often on Xerces to find performance issues, and it massively improved in performance b

RE: SAX performance observations

2001-10-03 Thread Mark Weaver
For string parsing a good approximation to best parsing can be provided by using a hash table. You will only have to do comparisons then in the case of collisons. Since your tags are fixed, careful choice of a hash function and hash table size will mean that they at least don't coincide. If you

Creating static libraries of xerces on UNIX

2001-10-03 Thread Aniruddha Shevade
Hello By default , the gmake utility creates a Shared lib for xerces on all Unix platforms. Is there a way to create a static library instead. If so which file need to be modified ? Any help in this matter is appreciated Thanks Aniruddha -

SAX performance observations

2001-10-03 Thread Dee Jay Randall
Two observations on performance implementing a class derived from DefaultHandler: 1. If you use a large conditional for handling different tags, you should do the comparisons in the order of most likely to be seen. element distribution: Tag1 (10%); Tag2 (70%); Tag3 (20%) Then: void startEl

Re: getChildNodes seems to return invalid info.

2001-10-03 Thread Joseph_Kesselman
>the lenght should be 2 , but it returns 5. Don't forget to count the Text nodes which represent the whitespace surrounding the child elements, unless you have set the parser to discard whitespace-in-element-content _and_ are validating against a DTD or schema which says that PCDATA is forbidden

RE: "Compiled" Schemas

2001-10-03 Thread Murphy, James
We have converted our application server to use the bReuseGrammar flag and it is G R E A T! Increasing out txn processing throughput by an order of magnitude! One catch though. We had to make sure to setValidationScheme to Val_Always instead of our previous Val_Auto. or subsequent parses wou

getChildNodes seems to return invalid info.

2001-10-03 Thread Eva Ko
Hi , I try to use the getChildNodes, but it return result and then core dump. Am I doing anything incorrectly? I really need some help here. I am using xerces C++ from the nightly build (9/14) on solaris. I also attached my full code and data file. thanks for your help in advance. My xml lo

Re: Binary files

2001-10-03 Thread Jason E. Stewart
"Altenau, Maureen D CECOM RDEC C2D" <[EMAIL PROTECTED]> writes: > I think I have this down. Is the library that I need > libxerces-c1_5_1.so? Yes that's the library. > Also, I tried to configure the samples. The make file failed in the first > subdirectory - SAXPrint when it accessed the ../M

Re: XercesDef.hpp

2001-10-03 Thread Carl_Erhorn
Maureen, It's possible that you have been bit by the dreaded GNUtar bug ;-) The tar files are created with GNU tar, which is not compatible with the various native tar programs supplied with UNIX systems. In order to correctly un-tar the distribution files, you _MUST_ use GNU tar, not the loca

PATCH: Fix for bug #2456 and xml4com compile fix

2001-10-03 Thread Bright, Sean
Please find attached the fix for bug #2456 and a fix for an MIDL error when compiling xml4com.dll (Note that the version() specifier to MIDL must have a major.minor format, so 1.5.1 is invalid in this context.) Thanks, Sean Bright Senior Developer Systems Alliance, Inc. 410-584-0595 x-116 Bug

Re: XercesDef.hpp

2001-10-03 Thread Jerry Carter
At 12:57 PM 03-10-01 -0400, you wrote: >The DOM_.hpp files located in the DOM include directory include the file >util/XercesDefs.hpp. Can someone tell me where I can get this file. It was >not in the binary tar file. It certainly should be! For what it's worth, I've attached the version

XercesDef.hpp

2001-10-03 Thread Altenau, Maureen D CECOM RDEC C2D
The DOM_.hpp files located in the DOM include directory include the file util/XercesDefs.hpp. Can someone tell me where I can get this file. It was not in the binary tar file. Thanks, Maureen - To unsubscribe, e-mail:

RE: Possible memory leak in IDOM_Element::getElementsByTagName()????

2001-10-03 Thread Houle, Dennis W
Tinny, Thanks for the clarification. I was planning on deleting the parser after I finished parsing a document and then process the document, deleting it when finished. Is this really not possible? Does the parser have to remain instantiated to continue using the document that it parsed? Thank

Re: Possible memory leak in IDOM_Element::getElementsByTagName()????

2001-10-03 Thread Tinny Ng
There was a memory leak bug in IDOM related to deepNodeList which is now fixed in the CVS (not in nightly build yet). You can do a CVS update to grep the latest source tree and try again. Please let me know if problem persists. Thanks! Tinny "Christy, Rich" wrote: > I trying to determine if

Re: Possible memory leak in IDOM_Element::getElementsByTagName()????

2001-10-03 Thread Tinny Ng
If you manually create a DOM document in memory, e.g. IDOM_Document* myDocument = IDOM_DOMImplementation::getImplementation()->createDocument(); delete myDocument; then you need to explicitly delete the document object. But if you just retrieve the document object after parsing

DO NOT REPLY [Bug 3938] New: - Memory leak when using the DOMParser

2001-10-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: internal compiler error

2001-10-03 Thread suresh
mark i got it . thank u for ur help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Linker error

2001-10-03 Thread suresh
Hi mark,. sorry for posting that silly error i figured that out befor ur reply but now i donno what this error is about anyway i thought i'll keep this posted XmlFunctionHandler.cpp C:\XmlParser\XmlFunctionHandler.cpp(83) : error C2664: 'class std::_Tree,class std::allocator > const &)>,s truct

RE: Linker error

2001-10-03 Thread Mark Weaver
from XMLFunctionHandler.cpp: void messageid_EndHandler(const string&) { // m_MessageFormatObject.set } void messagesize_EndHandler(const string&){} void messageheader_EndHandler(const string&){} void receiver_EndHandler(const string&){} void messagetype_EndHandler(const string&){} void messaget

Re: internal compiler error

2001-10-03 Thread suresh
Hi , thanks for helping me out but now i have the following error has anyone faced the problem befor?.iam awaiting ur reply XmlFunctionHandler.obj : error LNK2001: unresolved external symbol "public: void __thiscall XmlFunctionHandler::messageheader_EndHandler(class std::basic_string,class std::

Linker error

2001-10-03 Thread suresh
Hi All,   i have the following error while executing the code attached   XmlFunctionHandler.obj : error LNK2001: unresolved external symbol "public: void __thiscall XmlFunctionHandler::messageheader_EndHandler(class std::basic_string,class std::allocator > const &)" (?messageheader_EndHa

RE: internal compiler error

2001-10-03 Thread Radovan Chytracek
Hi,      you have backslashes at line 41 and others. You don't need them unless you write a macro. I would use "std::string" instead of just "string". You get a memory leak. Try instead:   --- char* transcoded =

RE: internal compiler error

2001-10-03 Thread Mark Weaver
Yes, I see this quite a lot. It's nothing to do with xerces and everything to do with MS' rather poor handling of templates. Try switching compilers - mingw is a good substitute (minimal gcc on windows port). If you are desparate to stick with MS' shoddy offering then you are going to have to p

Fw: internal compiler error

2001-10-03 Thread suresh
Hi All,   I tried using stl map with xerces it throws up an C:\XmlParser\XmlFunctionHandler.cpp(47) : fatal error C1001: INTERNAL COMPILER ERROR.   The environment is Operating system : Win2k Dev. Tool : VC++ 6.0 with SP5 with Xerces 1.5   I have attached the files for you to have a look