i'm getting
this error when trying to validate
against the xml schema standard ...
org.iso_relax.verifier.VerifierConfigurationException: www.w3.org at
com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(Unknown
Source)at
org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)at
org.iso_relax.verifier.VerifierFactory.newVerifier(Unknown Source)at JAXPWithMSVDemo.main(JAXPWithMSVDemo.java:43)
code
looks like:
VerifierFactory factory =
VerifierFactory.newInstance();
Verifier verifier =
factory.newVerifier("d:/schema/XMLSchema.xsd
verifier.setErrorHandler( new
ReportErrorHandler()
InputStream ips = (InputStream)new
FileInputStream("d:/schema/BookCatalogue2.xml
InputSource ipso = new
InputSource(ips);
if(verifier.verify(ipso))
System.out.println("BookCatalogue2.xml
is
valid");
else
System.out.println("BookCatalogue2.xml
is NOT valid");
}
any idea
about solving this?
bart