Bernd Oninger wrote:
> Ok, in order to validate a given xml file against a given xsd file I would like to
> type at the command prompt something like
>
> java -classpath .;\blah\bluh\foo.jar myxmlfile.xml
>
> Is there such a jar file which helps me to do this?
> Unfortunately XercesImpl.jar is not suitable
> It yields:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: myxmlfile/xml
Well the java command needs some Java class to execute and not an XML
file. You would need to write a small Java program using Xerces that you
can then call with the java command.
I can't get through to xml.apache.org currently but I think they
document how to use SAX parsing for instance with validation.
--
Martin Honnen
http://JavaScript.FAQTs.com/