[erlang-questions] Parsing a DTD file with xmerl

Bertil Karlsson <>
Mon Jun 9 08:15:00 CEST 2008


> 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}},
>                    {file,"CIM_DTD_V22.dtd"},
>                    {line,102},
>                    {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.
Parsing an xml file and validating it with your DTD should be fine.


More information about the erlang-questions mailing list