Re: [xml] Some things about xmlCharEncodingHandler
- From: Igor Zlatkovic <igor zlatkovic com>
- To: oliverst online de
- Cc: xml gnome org
- Subject: Re: [xml] Some things about xmlCharEncodingHandler
- Date: Sat, 07 Feb 2004 12:38:29 +0100
oliverst online de wrote:
I just recognised a problem with my patch.
It gives you the handler, that already exists under the alias you want
to register it, but what if you wnat to use different callbacks than the
already registered one? The result you are going to get is not the one
you expected. But on the other hand you were never able to overwrite an
existing handler with old code or use a different handler under the same
alias with different callbacks, because xmlFindCharEncodingHandler()
always gave you the first it found.
So...the question is, how should the function behave?
With my patch it would just look for an existing handler with the same
alias. Should it also change the callbacks from the existing ones to the
ones you passed in the function call, if they aren't the same?
It seems so.
Ciao,
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]