I have a
Java application that is supposed to validate an XML file using a schema. At this time I'm using JARV and running into a problem that isn't addressed in any of the Sun tutorials.
The lines for the validation are:
VerifierFactory factory = VerifierFactory.newInstance("http://www.w3.org/2001/XMLSchema");
Verifier verifier = factory.newVerifier("http://127.0.0.1:8070/soap/DataFolder/MySchema.xsd");
try {
if(verifier.verify(new File("EPSQ.xml")))
System.out.println("VALID XML");
.....
It all compiles, but when I run it I'm getting the following error on the second line ("Verifier verifier..."):
Exception in
thread "main" org.iso_relax.verifier.VerifierConfigurationException
Anyone with experience and/or ideas about this? I have never done this before.
Thanks,