[jdom-interest] schema validation

Clas Forsberg clas.forsberg at omgroup.com
Mon Nov 13 07:19:49 PST 2000



When I try to validate my xml file

SAXBuilder builder = new SAXBuilder(true);
 Document doc = builder.build(new File(filename));

I get this message:

xml.class successfully loaded
[Fatal Error] :0:0: File "C:\Clazze\OMexus\log\log.xsd" not found.
org.jdom.JDOMException: General Schema Error: Stopping after fatal error: File
"C:\Clazze\OMexus\log\log.xsd" not found..: Error on line 2 of document
file:/C:/Clazze/OMexus/log/OMexus.xml: General
Schema Error: Stopping after fatal error: File "C:\Clazze\OMexus\log\log.xsd"
not found..

Why ?

This is line 2
<LOG xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Clazze\OMexus\log\log.xsd">





More information about the jdom-interest mailing list