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
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
---
> > 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
> > 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
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
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
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
-
> 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
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: