Re: [xml] Some things about xmlCharEncodingHandler
- From: <oliverst online de>
- To: <xml gnome org>
- Subject: Re: [xml] Some things about xmlCharEncodingHandler
- Date: Wed, 4 Feb 2004 12:04:02 +0100
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?
] [Thread Prev