Re: XML Schema Validation Error Report

Herong Yang <[email protected]> Sun, 21 Jun 2020 06:30:23 +0000 (UTC)
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <[email protected]>
------=_Part_1094960_700701692.1592721023807
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Mukul,=C2=A0
Sure, a large of invalid elements could be a problem for error reporting. B=
ut there should be some standard ways to manage that situation.=C2=A0
Thanks again for your response.=C2=A0
Herong
    On Saturday, June 20, 2020, 12:13:44 PM GMT+8, Mukul Gandhi <mukulg@apa=
che.org> wrote: =20
=20
 Hi=C2=A0Herong,
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 c=
onsider two extremes as follows:For your use case,At one side, if the numbe=
r of XML sibling invalid=C2=A0elements are less then the error reporting im=
provements you're suggesting seems ok to me.On the other hand, if the numbe=
r of XML sibling invalid elements are large (say couple of hundred or even =
thousands), then IMHO your suggested error reporting would not look ok.
=C2=A0
--=20
Regards,
Mukul Gandhi
 =20
------=_Part_1094960_700701692.1592721023807
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"ydpeca4fe5ayahoo-style-wrap" style=
=3D"font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 1=
3px;"><div><div dir=3D"ltr" data-setdir=3D"false">Hi Mukul,&nbsp;</div><div=
 dir=3D"ltr" data-setdir=3D"false"><br></div><div dir=3D"ltr" data-setdir=
=3D"false">Sure, a large of invalid elements could be a problem for error r=
eporting. But there should be some standard ways to manage that situation.&=
nbsp;</div><div dir=3D"ltr" data-setdir=3D"false"><div dir=3D"ltr" data-set=
dir=3D"false"><br></div></div><div dir=3D"ltr" data-setdir=3D"false">Thanks=
 again for your response.&nbsp;</div><div dir=3D"ltr" data-setdir=3D"false"=
><br></div><div class=3D"ydpeca4fe5asignature" dir=3D"ltr" data-setdir=3D"f=
alse">Herong</div></div><div><br></div>
       =20
        </div><div id=3D"ydpb350b34yahoo_quoted_3003832059" class=3D"ydpb35=
0b34yahoo_quoted">
            <div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, s=
ans-serif;font-size:13px;color:#26282a;">
               =20
                <div>
                    On Saturday, June 20, 2020, 12:13:44 PM GMT+8, Mukul Ga=
ndhi &lt;[email protected]&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id=3D"ydpb350b34yiv6463851390"><div><div dir=3D"l=
tr"><div dir=3D"ltr"><div>Hi&nbsp;Herong,</div><br clear=3D"none"><div clas=
s=3D"ydpb350b34yiv6463851390gmail_quote"><div class=3D"ydpb350b34yiv6463851=
390gmail_attr" dir=3D"ltr">On Fri, Jun 19, 2020 at 5:37 PM Herong Yang &lt;=
<a shape=3D"rect" href=3D"mailto:[email protected]" rel=3D"nofollow" ta=
rget=3D"_blank">[email protected]</a>&gt; wrote:</div><blockquote class=
=3D"ydpb350b34yiv6463851390gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex;"><div style=3D"font=
-family:Helvetica, Arial, sans-serif;font-size:13px;"><div dir=3D"ltr" styl=
e=3D"font-family:Helvetica, Arial, sans-serif;font-size:13px;"><span style=
=3D"color:rgb(38,40,42);">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.</span></div></div>=
</blockquote><div><br clear=3D"none"></div><div>To have this facility, for =
XML Schema error reporting, I think we need to consider two extremes as fol=
lows:</div><div>For your use case,</div><div>At one side, if the number of =
XML sibling invalid&nbsp;elements are less then the error reporting improve=
ments you're suggesting seems ok to me.</div><div>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 o=
k.</div><div class=3D"ydpb350b34yiv6463851390yqt1316317169" id=3D"ydpb350b3=
4yiv6463851390yqtfd25899"><div><br clear=3D"none"></div><div>&nbsp;</div></=
div></div><div class=3D"ydpb350b34yiv6463851390yqt1316317169" id=3D"ydpb350=
b34yiv6463851390yqtfd32667"><div><br clear=3D"none"></div>-- <br clear=3D"n=
one"><div class=3D"ydpb350b34yiv6463851390gmail_signature" dir=3D"ltr"><div=
 dir=3D"ltr"><div>Regards,<br clear=3D"none">Mukul Gandhi<br clear=3D"none"=
></div></div></div></div></div></div></div></div></div>
            </div>
        </div></body></html>
------=_Part_1094960_700701692.1592721023807--