[erlang-questions] emerl_scan:file/1

18 views
Skip to first unread message

prasantha kumara

unread,
Feb 12, 2009, 5:41:26 AM2/12/09
to erlang-q...@erlang.org
Hi all,
I tried write an erlang programe to read a xml file. i wrote a xml file and the dtd file.
When i tried to compile the {ParsResult,Misc}=xmerl_scan:file("motorcycles.xml").
in erl prompt. it gives following errors.
** exception error: no case clause matching {error,enoent}
     in function  xmerl_scan:fetch_DTD/2
     in call from xmerl_scan:scan_doctype2/3
     in call from xmerl_scan:scan_prolog/3
     in call from xmerl_scan:scan_document/2
     in call from xmerl_scan:file/2

Can anybody tell me the reason of that exception?
thanks
prasantha

Bertil Karlsson

unread,
Feb 12, 2009, 6:19:54 AM2/12/09
to prasantha kumara, erlang-q...@erlang.org
If the file is from the xmerl docs you need a motorcycles.dtd file as
well, also available in the docs I guess.

/Bertil

> ------------------------------------------------------------------------
>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://www.erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

mats cronqvist

unread,
Feb 13, 2009, 3:19:13 AM2/13/09
to prasantha kumara, erlang-q...@erlang.org
prasantha kumara <jlpra...@gmail.com> writes:

> ** exception error: no case clause matching {error,enoent}

enoent means that the file cannot be found.

http://www.opengroup.org/onlinepubs/009695399/basedefs/errno.h.html

Reply all
Reply to author
Forward
0 new messages