Re: XML Schema Validation Error Report

Mukul Gandhi <[email protected]> Sat, 20 Jun 2020 09:43:28 +0530
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CABuuzNPG+wwVghzD9z44teF=A-KxMUXzpWx3Lpeh-RhfA9qdXw@mail.gmail.com>
--00000000000014cbd605a87c3cee
Content-Type: text/plain; charset="UTF-8"

Hi Herong,

On Fri, Jun 19, 2020 at 5:37 PM Herong Yang <[email protected]> wrote:

> The current error report is clear and useful. But I still think it will be
> nice if both 'A' and 'B' are listed in the error report, since both of them
> are not expected to be there.
>

To have this facility, for XML Schema error reporting, I think we need to
consider two extremes as follows:
For your use case,
At one side, if the number of XML sibling invalid elements are less then
the error reporting improvements you're suggesting seems ok to me.
On the other hand, if the number of XML sibling invalid elements are large
(say couple of hundred or even thousands), then IMHO your suggested error
reporting would not look ok.



-- 
Regards,
Mukul Gandhi

--00000000000014cbd605a87c3cee
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Hi=C2=A0Herong,</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun 19, 2020=
 at 5:37 PM Herong Yang &lt;<a href=3D"mailto:[email protected]">herong=
[email protected]</a>&gt; wrote:</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div style=3D"font-family:&quot;Helvetica Neue&quot;,Helvetica,A=
rial,sans-serif;font-size:13px"><div dir=3D"ltr" style=3D"font-family:&quot=
;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;font-size:13px"><span styl=
e=3D"color:rgb(38,40,42)">The current error report is clear and useful. But=
 I still think it will be nice if both &#39;A&#39; and &#39;B&#39; are list=
ed in the error report, since both of them are not expected to be there.</s=
pan></div></div></blockquote><div><br></div><div>To have this facility, for=
 XML Schema error reporting, I think we need to consider two extremes as fo=
llows:</div><div>For your use case,</div><div>At one side, if the number of=
 XML sibling invalid=C2=A0elements are less then the error reporting improv=
ements you&#39;re suggesting seems ok to me.</div><div>On the other hand, i=
f the number of XML sibling invalid elements are large (say couple of hundr=
ed or even thousands), then IMHO your suggested error reporting would not l=
ook ok.</div><div><br></div><div>=C2=A0</div></div><div><br></div>-- <br><d=
iv dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div>Regards,<br>=
Mukul Gandhi<br></div></div></div></div></div>

--00000000000014cbd605a87c3cee--