RE: Invoking schema validation processors

Dear Ken,

you could use the free XML ValidatorBuddy Command Line Tool (for Windows)
which is available at: http://www.xml-tools.com/download.htm

I was able to successfully validate your sample files. The tool also uses
the Xerces 3.1 parser internally. If one of the XML documents is invalid an
exit code of -1 is returned, otherwise it returns 0.

This would be the output on calling:
valbuddy.exe -v -verbose test2.xml

XML ValidatorBuddy command-line Tool
By xml-tools.com, Copyright 2012

G:\Users\xml\Ken Holman\test2.xml: invalid
Line: 6, Col: 6 : no declaration found for element 'doc'
Line: 2, Col: 8 : no declaration found for element 'test'


And this is the output on calling:
Valbuddy.exe -v -verbose -s test.xsd test2.xml

XML ValidatorBuddy command-line Tool
By xml-tools.com, Copyright 2012

G:\Users\xml\Ken Holman\test2.xml: valid


Best regards

Clemens Uhlenhut
http://www.xml-tools.com



-----Original Message-----
From: G. Ken Holman [mailto:gkholman@CraneSoftwrights.com] 
Sent: Dienstag, 10. Jänner 2012 18:33
To: xmlschema-dev@w3.org
Subject: Re: Invoking schema validation processors

At 2012-01-10 11:54 -0500, Michael Glavassevich wrote:
>If Xerces is performing DTD and XSD validation at the same time it's 
>because the application (xjparse in this case) configured it [1] (by 
>accident?) to do so. There are multiple ways to get Xerces to do XSD 
>validation [2] only.

What I cannot see at that FAQ is how to accomplish this from the command
line.

The UBL community's users are running validation from batch files.

Thanks, again, for any guidance.

. . . . . . . . . . . . Ken


--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/x/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Received on Wednesday, 11 January 2012 16:46:30 UTC