I am trying to validate against an xsd file that is jar'ed up with my
program that is deployed thru jnlp. Included in the jnlp are the jars
xml-apis.jar and xercesImpl.jar. I do
System.out.println((null !=
PatchAnimIO.class.getResourceAsStream(PATCHANIMDOC_SCHEMA)) ? "loaded" :
"null");
System.out.println(PatchAnimDocument.class.getResource(PATCHANIMDOC_SCHEMA).getPath());
reader.setProperty(http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation,
PatchAnimDocument.class.getResource(PATCHANIMDOC_SCHEMA).getPath());
When run thru jnlp, it dumps to the console
loaded
http://patchanim.sourceforge.net/jnlp/patchanim-0.3.0.jar!/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsd
[Warning] :2:73: schema_reference.4: Failed to read schema document
'http://patchanim.sourceforge.net/jnlp/patchanim
0.3.0.jar!/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsd', because 1) could
not find the document
So this shows that the xsd is where i said it was, but yet, setProperty
seems like it doesn't know how to load it?
Any ideas?
dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]