Hi John,

On Wed, Aug 26, 2020 at 7:47 PM JOHN Morris <j.morri...@ntlworld.com> wrote:

Also, I wonder whether I could get you to send me the exact outputs from
> your jaxp.SourceValidator runs on the two files test1.xml (9 errors) and
> test2.xml (18 errors).


I just saw that, you've created a Jira issue XERCESJ-1726 for this
discussion. Thanks.

I'm now able to reproduce the issues described by you within this
discussion.

I've now used, the XML documents (test1.xml & test2.xml) and an XSD
document (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.

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
investigated I believe.


> Is there a command-line option for jaxp.SourceValidator which would
> produce additional lines in the output for the original XML from each line
> in the input file, whether valid or not?
>

I guess that, there's no such command line option
with jaxp.SourceValidator. 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, or if the XML document is valid the output
displays nothing (except the time it took for the XSD validation to take
place).



-- 
Regards,
Mukul Gandhi

Reply via email to