<div dir="ltr"><div>I created a pull request <a href="https://github.com/erlang/otp/pull/1332">https://github.com/erlang/otp/pull/1332</a>.<br>It contains a fix for this problem as well as two additional test cases.<br><br></div>Karolis<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 3:43 PM, Karolis Petrauskas <span dir="ltr"><<a href="mailto:k.petrauskas@gmail.com" target="_blank">k.petrauskas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the information.<br>
<span class="HOEnZb"><font color="#888888"><br>
Karolis<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Jan 11, 2017 at 8:29 AM, Lars Thorsen <<a href="mailto:lars.thorsen@ericsson.com">lars.thorsen@ericsson.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> this is clearly a bug and I will create an internal ticket for it.<br>
><br>
> If you want to keep track on it create a bug report in Jira<br>
> (<a href="http://bugs.erlang.org/" rel="noreferrer" target="_blank">http://bugs.erlang.org/</a>).<br>
><br>
><br>
> BR Lars<br>
><br>
> OTP Team<br>
><br>
><br>
> ______________________________<wbr>__<br>
> From: <a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@<wbr>erlang.org</a><br>
> <<a href="mailto:erlang-questions-bounces@erlang.org">erlang-questions-bounces@<wbr>erlang.org</a>> on behalf of Karolis Petrauskas<br>
> <<a href="mailto:k.petrauskas@gmail.com">k.petrauskas@gmail.com</a>><br>
> Sent: Saturday, January 7, 2017 10:05:31 PM<br>
> To: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> Subject: [erlang-questions] xmerl and the xml namespace<br>
><br>
> Hello erlangers,<br>
><br>
> I tried to parse XML document containing namespaced elements using<br>
> xmerl. The document contain xml:lang attributes and no declaration for<br>
> the xml prefix. The minimal example reproducing the error is bellow.<br>
><br>
> 1> catch xmerl_scan:string("<a xml:lang='en_US'/>",<br>
> [{namespace_conformant, true}]).<br>
><br>
> {'EXIT',{fatal,{{namespace_<wbr>prefix_not_declared,"xml"},<br>
> {file,file_name_unknown},<br>
> {line,1},<br>
> {col,23}}}}<br>
><br>
> The same XML document is parsed successfully with {namespace_conformant,<br>
> false}.<br>
><br>
> The XML specification (<a href="https://www.w3.org/TR/xml-names/#xmlReserved" rel="noreferrer" target="_blank">https://www.w3.org/TR/xml-<wbr>names/#xmlReserved</a>)<br>
> says, that the xml prefix can be used without declaration and must<br>
> refer to "<a href="http://www.w3.org/XML/1998/namespace" rel="noreferrer" target="_blank">http://www.w3.org/XML/1998/<wbr>namespace</a>".<br>
><br>
> Is this a bug in xmerl, or I misunderstand something?<br>
><br>
> Karolis<br>
> ______________________________<wbr>_________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>