Re: Re: Possible Bug: Xerces 2.12.1 for XML Validation with XSD 1.1 Schema under Java - Plain Text

JOHN Morris <[email protected]> Fri, 28 Aug 2020 09:17:04 +0100 (BST)
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <[email protected]>
Hi Mukul,

Thanks for the update.

I was relieved to get away from the previous level of uncertainty that I wa=
s doing something stupid!

I'm not sure what was happening before to give us those discrepancies betwe=
en our respective results though. Did you try comparing the files you were =
using for the validations before with the new (but, from my point of view, =
the same) files from the Jira case?

> When I remove the XML comment from line 40 of the file test2.xml, I get 9=
 XSD validation errors
> for the file test2.xml after removal of XML comment. This looks to me str=
ange, and may be a bug
> with Xerces-J and should be investigated I believe.

Yes, this would be because the subsequent XML comments are no longer aligne=
d with the problematic line numbers.

What can I expect to happen next? Is there some process where one of the Xe=
rces-J Developers (assuming that you are not already one of those) will pic=
k up this case? If so, how long does that process typically take, in your e=
xperience?

I wonder whether it would help my case, if you could add your supporting in=
formation, that you had succeeded in replicating the problem, to the Jira c=
ase itself?

All the best,

John.

> On 28 August 2020 at 04:47 Mukul Gandhi <[email protected]> wrote:=20
>=20
>=20
> Hi John,
>=20
>=20
> On Wed, Aug 26, 2020 at 7:47 PM JOHN Morris < [email protected]> wr=
ote:
> =C2=A0
> > Also, I wonder whether I could get you to send me the exact outputs fro=
m your jaxp.SourceValidator runs on the two files test1.xml (9 errors) and =
test2.xml (18 errors).
> =C2=A0
> I just saw that, you've created a Jira issue=C2=A0XERCESJ-1726 for this d=
iscussion. Thanks.
> =C2=A0
> I'm now able to reproduce the issues described by you within this discuss=
ion.
> =C2=A0
> I've now used, the XML documents (test1.xml & test2.xml) and an XSD docum=
ent (test.xsd) that you've attached to the above mentioned Jira issue. With=
 those files, the XML document test1.xml gives me 9 XSD validation errors, =
and the file test2.xml gives me no XSD validation errors.
> =C2=A0
> When I remove the XML comment from line 40 of the file test2.xml, I get 9=
 XSD validation errors for the file test2.xml after removal of XML comment.=
 This looks to me strange, and may be a bug with Xerces-J and should be inv=
estigated I believe.
> =C2=A0
> > Is there a command-line option for jaxp.SourceValidator which would pro=
duce additional lines in the output for the original XML from each line in =
the input file, whether valid or not?
> =C2=A0
> I guess that, there's no such command line option with=C2=A0jaxp.SourceVa=
lidator. Inherently, after validation using jaxp.SourceValidator, either we=
 see line and column numbers with error descriptions for the instances that=
 are involved in invalidity assessment for the XML and XSD documents,=C2=A0=
or if the XML document is valid the output displays nothing (except the tim=
e it took for the XSD validation to take place).
>=20
>=20
> --=20
>=20
>=20
> Regards,=20
> Mukul Gandhi