[jdom-interest] Schema validation
philip.nelson at omniresources.com
philip.nelson at omniresources.com
Tue Jun 12 21:02:16 PDT 2001
Check the url it is complaining about! It really isn't there.
xsi:schemaLocation="http://www.sun.com/iforce/hercules
file:C:/development/hercules/com/sun/hercules/xml/Schedule.xsd">
that looks like something you didn't intend to send to us but if that is
what you have in your doc, it won't work.
-----Original Message-----
From: Peter H.M. Jacobs
To: jdom-interest at jdom.org
Sent: 6/12/01 5:04 PM
Subject: [jdom-interest] Schema validation
Hello,
I just started with XML and seem to have problems validating my XML
message.
Java file :
parser = new
org.jdom.input.DOMBuilder("org.jdom.adapters.XercesDOMAdapter",true);
XML Instance :
<hercules:schedule
xmlns:hercules="http://www.sun.com/iforce/hercules"
xmlns:xsi="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://www.sun.com/iforce/hercules
file:C:/development/hercules/com/sun/hercules/xml/Schedule.xsd">
XML Schema :
<xsd:schema targetNamespace="http://www.sun.com/iforce/hercules"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:hercules="http://www.sun.com/iforce/hercules">
Error :
org.jdom.JDOMException: Error in building from stream: Error on line 9
of
XML document: General Schema Error: Grammar with uri 2:
http://www.sun.com/iforce/hercules , can not found.
Is there anyone who can help me??
Regards,
Peter Jacobs
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rhost.com
More information about the jdom-interest
mailing list