[erlang-questions] Parsing a DTD file with xmerl

Tim Potter <>
Thu Jun 5 23:18:26 CEST 2008

[Resending from correct account]

Hi everyone.  Just a quick question about xmerl - is it possible to
parse a DTD file and receive back something useful?

For example, running xmerl_scan:file("CIM_DTD_V22.dtd") gives back the
following error:

1698- fatal: {error,{wfc_PEs_In_Internal_Subset}}
** exited: {fatal,{{error,{wfc_PEs_In_Internal_Subset}},
                   {col,10}}} **

Tracing down through the error a bit it appears that xmerl is
complaining about a parameter-entity reference appearing within a markup
declaration which I don't think is the case here.  

This DTD file is parsed by other XML parsers, for example Python.


More information about the erlang-questions mailing list