Re: [xml] encoding, SAX callbacks

Date view Thread view Subject view Author view

From: Bjorn Reese (breese@mail1.stofanet.dk)
Date: Mon Feb 26 2001 - 14:37:50 EST


James McCann wrote:

> >encoding. You can use the functions from libxml to do this conversion
> >for you (this is fairly easy; I have done something similar for UTF-8
> >to HTML).
>
> Yes it is easy to copy and paste, but that is error prone and bad design.

Who said anything about copy and paste? Just use xmlCharEncOutFunc().

> iconv, potentially ones not in existence yet. Why not make this power
> available to the users of the library in a fashion convenient for the apps?

As Daniel said, you are welcome to contribute such modifications.

If you decide to build your wrapper on top of libxml, then I am sure others
in a similar position to yours, those whom you include in your arguments,
will be most grateful if you make your wrapper available. This would be in
the same spirit that libxml was brought to you.

> burden not a convenience. It turns out that oddly enough for systems like
> ours a naive XML parser is preferable to libxml because we do not have to
> deal w/ an additional encoding.

Well, use whatever tool is best for you. I do, however, doubt that rolling
your own parser will be faster than building the wrapper or using expat (or
another existing XML parser that fulfills your requirements).

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 26 2001 - 14:43:49 EST