RE: validating against the standard W3C
i'm getting this error when trying to validate against the xml schema standard ...
org.iso_relax.verifier.VerifierConfigurationException: http://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 =
verifier.setErrorHandler( new ReportErrorHandler()
InputStream ips = (InputStream)new FileInputStream("d:/schema/BookCatalogue2.xml
InputSource ipso = new
any idea about solving this?
The basic problem at this point in time is being totally sure of what the gold standard is. The W3C XML Schema Rec, particularly Part 1, seems almost designed to be impenetrable. [I have had my knuckles rapped before for saying that, but I still believe it to be true.]
Inevitably implementors have to interpret the impenetrable and implementors differ in how they do interpret it. I would suggest that at this point in the development of XSD Schema (W3C XML Schema) tools that there is some sort of safety in numbers.
Take a look at the schema validation facilities in XML Spy and in Turbo XML from Extensibility. Both are fairly good validators and have free evaluation downloads available. I spent several weeks working with both downloads on a range of (relatively brief) schemas. Occasionally Turbo XML (2.2.1 I think) would miss errors and slightly more often XML Spy (4.01 I think) would declare spurious errors.
So if you put those validators and their error messages together with the results from the tool you are already using then you will begin to (hopefully) creep closer to the truth.
Others may disagree but for a little time yet I don't think one can safely assume that the absence of an error message from a W3C XML Schema validation tool accurately predicts the absence of errors nor does an error message necessarily accurately predict the presence of errors.
Some patience is called for - both in working through the current situation and also in waiting for the next iteration of (constantly improving) tools.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format