error msg:
** exception exit: {fatal,{{invalid_target_name," version=\""},
{file,"/path/to/dtd.dtd"},
{line,6},
{col,18}}}
in function xmerl_scan:fatal/2
in call from xmerl_scan:scan_ext_subset/2
in call from xmerl_scan:scan_decl_sep/2
in call from xmerl_scan:scan_ext_subset/2
in call from xmerl_scan:scan_decl/2
in call from xmerl_scan:fetch_and_parse/3
in call from xmerl_scan:fetch_DTD/2
in call from xmerl_scan:scan_doctype2/3
간편 해결책: DTD 들이 있는 디렉토리에서 다음을 실행해주자 (DTD 파일이 여러개일때...)
$ sed -i '/./,/^$/!d' *.dtd # remove leading blank line(s).
happy hackin'