You can use one of the Xerces samples:
http://xerces.apache.org/xerces2-j/samples.html
for instance:
http://xerces.apache.org/xerces2-j/samples-sax.html#Counter

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Allison Bloodworth wrote:
Actually, I misspoke. I'm trying to validate an instance document against a
schema I created. I'm getting errors in XML Spy that don't make sense and
the xml-dev list recommended I use Xerces to check it since it was a better
implementation of the spec. So any pointers would be welcome here...thanks!

-----Original Message-----
From: Soosai, Lourdhu Vasanth [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 1:10 PM
To: [EMAIL PROTECTED]
Subject: RE: Invoking schema validator from the command line



If your objective is just to validate an xml against a schema , I would
just use an IDE.

Below are free down loads. Validation involves just a mouse click .Hope
this helps

http://www.eclipse.org/downloads/index.php

http://www.xml.com/pub/r/1376



Regards
______________________________________
Vasanth,CT -  USA


-----Original Message-----
From: Allison Bloodworth [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 4:02 PM
To: [email protected]
Subject: Invoking schema validator from the command line


Hi,
I'm sorry for what seems like a very stupid newbie question, but I can't
find info on this in the documentation or in the mailing list archives.

I just downloaded Xerces 2.7.1. I'd like to use it simply to validate an
XML schema from the command line (I know a bit about java, but I'm not a
programmer and I'm not creating any sort of program). Can someone tell
me which jars I need in my classpath and what the command is to invoke
the validator? Is this the proper version of Xerces to use to do this?

Thanks so much for any help you can give me,

Allison Bloodworth
Principal Administrative Analyst
e-Berkeley Program Office
University of California, Berkeley
(415) 377-8243
[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-----------------------------------------
This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by
reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to