RE: Standalone SAX parser?

2002-05-28 Thread Brendan Reville
d in application size, when all I need is the very simple ability to SAX parse a file. Going by Dean's comments, I'm guessing that the statically linked app has a fairly large executable on disk, because all the DOM stuff ends up in there too? - Brendan > -----Original Message

Standalone SAX parser?

2002-05-23 Thread Brendan Reville
hi all, (I think I'll just ask this every 6 months to see if anything has changed :) Has anybody managed to build a standalone SAX parser? I'm trying to avoid including a half-megabyte DLL with every download of our software. thanks - Brendan ---

RE: Xerces size -- was Re: XMLCh to utf-8 conversion?

2002-01-21 Thread Brendan Reville
> > I'd be happy to go with the latest version of Xerces if either (a) > > the DLL was still small or (b) there was a decent way to build and > > link a minimal SAX-only version of Xerces. > > Hmm... I think it's possible. Other people can correct me, but I > believe Xerces DOM relies on SAX, but

Xerces size -- was Re: XMLCh to utf-8 conversion?

2002-01-21 Thread Brendan Reville
> > I'm using xerces 1.2, hope that's ok. > > Good Lord, son!! That's bronze age equiptment. I'd seriously > upgrade. There have been many many improvements since then (like bugs > fixed and memory leaks patched, etc). > > Besides, we won't be able to help you if you don't (Since everyone on > th

RE: XMLCh to utf-8 conversion?

2002-01-21 Thread Brendan Reville
Just an addendum to my last post... > 1. Unfortunately, I'm getting an unhandled exception (access violation) > somewhere inside the call to transcodeTo(). Any idea why this > would happen? Here's some more detail: unsigned int total_chars = UTF8_TRANSCODER->transcodeTo((const XMLCh*) source

RE: XMLCh to utf-8 conversion?

2002-01-21 Thread Brendan Reville
Jason, thanks for the help. 1. Unfortunately, I'm getting an unhandled exception (access violation) somewhere inside the call to transcodeTo(). Any idea why this would happen? 2. I'm also a bit fuzzy about the value of UTF8_MAXLEN. Would this normally be 4 or so? I'm using xerces 1.2, hope

XMLCh to utf-8 conversion?

2002-01-20 Thread Brendan Reville
hi all, I have a .xml file encoded as utf-8, and I want to load some attribute values as utf-8 strings inside my own code. given that AttributeList::getName()) returns an XMLCh*, which I take to be Unicode characters, how can I then convert this back into a utf-8 string? thanks! - Brendan -

RE: "Invalid document structure" exception?

2002-01-19 Thread Brendan Reville
> Though my hex math isn't good enough to do it in my head, it > looks like the > UTF-8 version of the Unicode byte order mark. I know that there was some > controversy as to whether that was legal, since the BOM is supposed to > indicate byte order for Unicode, whereas UTF-8 has no byte order. O

"Invalid document structure" exception?

2002-01-19 Thread Brendan Reville
hi all, I have a text .xml file which I saved in Windows Notepad as a UTF-8 file. However, when I try to parse it with Xerces, I get an "invalid document structure" exception on line 1, character 1. Any idea why I would be getting this? The very beginning of the file looks like this: