[erlang-bugs] bug_xmerl_comment

PAILLEAU Eric <>
Wed Oct 30 10:31:59 CET 2013


Hello,

MHO it is not a bug,

your xml is simbly buggy (using xmllint : )


<? xml version = "1.0"?>
   ^
/tmp/test.xml:1: parser error : Start tag expected, '<' not found
<? xml version = "1.0"?>

StartTag: invalid element name
<! - Continue context = "ctx_megaco_local_in" / ->
  ^
parser error : expected '>'
</ result>
   ^

Mainly your problem is that comments are <!-- -->
and not <! - ->

Regards.


Le 30/10/2013 02:11, Constantin Malikov a écrit :
> Hello , friends. I want to tell you about a bug in Erlang:
>
> I have a trouble with validating xml document by xsd schema in case of
>
> use comment in the xml document. I attached simple sample, where you can
> see this problem. To run it, compile xml_comment_test.erl and invoke
> “invalid_xml_comment_test” method.
>
> You can see the error message:
>


More information about the erlang-bugs mailing list