[Haskell-cafe] character encoding problems with hxt (I think)

Uwe Schmidt (FH Wedel) si at fh-wedel.de
Sun Oct 14 13:51:02 CEST 2012

Hi Henry,

it's not an encoding error but an error concerning the validation
of the document.

The document "/usr/share/xml/iso-codes/iso_3166_2.xml"
is not valid with respect to its internal DTD.
The opening tag

<iso_3166_country code="GH">

on line 3711
does not have a closing tag. That closing tag should be inserted
directly in front of

    <!-- Greenland -->
<iso_3166_country code="GL" />

on line 3735. Further the "/" for an empty element
for the "GL" code must be removed.

So it's not an error in HXT, but HXT has found an error in the
input file. The input file is not valid XML.
Solution: Turn off validation and live with the wrong structure
of that document, or correct the XML file (and give the
maintainers of that file a bug report).

But with the error message HXT gave you,
there is some room for improvements.




Uwe Schmidt
FH Wedel

More information about the Haskell-Cafe mailing list