Please post to the list in plain text rather than HTML (more people will be able to read your email, and thus offer help).
No, on UNIX, many linkers fast link the entire static library to an executable creating a larger than neccesary executable. Using the strip command, you can pull out all unreferenced symbols, thus shrinking the executable. As you mention DLL's, it is clear that you are using a Microsoft platform, and I do not know much about that platform and its linking process. As you are just trying to develop a validation service (which many XML editors provide on the MS platform from what I've heard), it doesn't sound like the executable size should be a big deal anyway. The sample programs are probably a good place to start, as your handler needs are very basic. You should only need to edit the ErrorHandler Overrides (warning, error, and fatal error), and then you'll probably want to override the contenthandlers system id to gain access to that (in general your content handler will have to inherit from or give access to your error handler anyway when working with SAX2). cheers, Brad -----Original Message----- From: Bill Boggs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 4:12 PM To: [EMAIL PROTECTED] Subject: RE: SAX2Count > 3MB when statically linked ???? Brad, are you asking if I stipped SAX2Count down to meet the simple requirement of just spitting out ERR line so and so vs , Valid doc ? That's all I want. Well, I didn't edit SAX2Count down for my purposes. I noticed that the size of the xereces DLL had varied a lot between some releases. In one case it was like 1.5MB and then in the one that I really wanted to build from (the latest src tree) the DLL was 3.6MB or something like that. I think the 1.5MB sized DLL came from a binary release targeted at Win32. Ultimately, I'm trying to build a syntax error checker for XML/DTD docs ... and doing this under CYGWIN. Any helpful hints would be appreciated. Is SAX2Count a good place to start ? Would there be a better sample to start from ? Probably I just need to sit down and read a bunch about the API ... but of course that's easiest when one starts with an appropriate sample. Brad Settlemyer wrote: Did you strip the binary? cheers, Brad -----Original Message----- From: Bill Boggs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:43 PM To: [EMAIL PROTECTED] Subject: SAX2Count > 3MB when statically linked ???? SAX2Count > 3MB when statically linked ???? I'm a newbie ... does this make sense ? Is the API that expansive and does it have that many dependencies within it ? All I'm looking for is any command-line app for validating XML/DTD. I was going to use SAX2Count. Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
