[xml] Apparent inconsistency
- From: Steve Underwood <steveu coppice org>
- To: xml gnome org
- Subject: [xml] Apparent inconsistency
- Date: Sun, 03 Jun 2001 10:45:47 +0800
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]