[xml] Apparent inconsistency



Hi,

Amongst the HTML parsing functions in libxml2 there seems to be an odd
inconsistency about specifying the encoding. The following functions:

        htmlSAXParseDoc
        htmlParseDoc
        htmlSAXParseFile
        htmlParseFile

all accept a string for the initial encoding mode, whereas:

        htmlCreatePushParserCtxt

accepts an xmlCharEncoding value. This means the first 4 functions can
be started in any encoding supported by the system, but the push mode
can only be started in one of a limited range of encodings. Is this a
historical accident, or some deep design issue? Either way its a pain
from the user's point of view.

Regards,
Steve




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]