<div dir="ltr">That's w3schools. Is it "the W3C" validator?</div><div class="gmail_extra"><br><div class="gmail_quote">On 16 September 2014 21:27, Eranga Udesh <span dir="ltr"><<a href="mailto:eranga.erl@gmail.com" target="_blank">eranga.erl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What do you mean? I use the online validator at <a href="http://www.w3schools.com/xml/xml_validator.asp" target="_blank">http://www.w3schools.com/xml/xml_validator.asp</a><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Eranga</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 2:46 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How did you feed XML to the W3C validator given that you can't limit it to XML analysis?<br>
<br>
Le 15 sept. 2014 à 13:22, Eranga Udesh <<a href="mailto:eranga.erl@gmail.com" target="_blank">eranga.erl@gmail.com</a>> a écrit :<br>
<div><div><br>
> Hi Motiejus,<br>
><br>
> It is not just W3C parser, but it seems PHP/Java XML parser(s) too support attributes without spaces.<br>
><br>
> For one of our projects in Erlang, we had to customize xmerl, because their existing XML parsers are supporting the XML syntax without whitespaces in attributes. When validated the same XML in W3C, no errors shown, so being a new solution, we had to comply to their existing XML syntax.<br>
><br>
> - Eranga<br>
><br>
> On Mon, Sep 15, 2014 at 1:52 PM, Motiejus Jakštys <<a href="mailto:desired.mta@gmail.com" target="_blank">desired.mta@gmail.com</a>> wrote:<br>
> On Mon, Sep 15, 2014 at 9:44 AM, Eranga Udesh <<a href="mailto:eranga.erl@gmail.com" target="_blank">eranga.erl@gmail.com</a>> wrote:<br>
> > Hi,<br>
> ><br>
> > However W3C (<a href="http://www.w3schools.com/xml/xml_validator.asp" target="_blank">http://www.w3schools.com/xml/xml_validator.asp</a>) validates above<br>
> > XLM without any errors. Therefore I guess xmerl better support that.<br>
><br>
> Hi, Udesh,<br>
><br>
> according to XML 1-1 specification[1], your example does not adhere to<br>
> the grammar. Relevant grammar sections:<br>
><br>
> [3] S ::= (#x20 | #x9 | #xD | #xA)+<br>
> [40] STag ::= '<' Name (S Attribute)* S? '>'<br>
> [41] Attribute ::= Name Eq AttValue<br>
><br>
> Important bit: (S Attribute)*. As you can see, Attribute can never<br>
> follow Attribute without a whitespace between them.<br>
><br>
> > Attached is a patch to fix that. It could help others too, if that patch is<br>
> > added to the xmerl package distributed in OTP distribution.<br>
><br>
> Maybe that W3C parser supports non-spaced attributes is coincidental?<br>
> Or maybe I am looking at the wrong grammar?<br>
><br>
> --<br>
> Motiejus Jakštys<br>
><br>
> [1]: <a href="http://www.w3.org/TR/xml11/#sec-starttags" target="_blank">http://www.w3.org/TR/xml11/#sec-starttags</a><br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo<br></div>
</div>