[jdom-interest] Problem with XMLSchema validation

Geoff Rimmer geoff.rimmer at sillyfish.com
Sat Apr 3 02:42:18 PST 2004

On Friday 02 April 2004 21:24, Arindam Gupta wrote:
> Hi,
> I tried the following code based on Kevin Jones posting in the FAQ. I am
> using the latest Xerces2.6.2 parser and JDOM-B10.
> ......
> SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser",
> true);
> builder.setFeature("http://apache.org/xml/features/validation/schema",
> true);
> builder.setProperty("http://apache.org/xml/properties/schema/external-noNam
>espaceSchemaLocation", "D://Temp//dstjobreq.xsd");

Surely there's got to be something wrong with this string:


For a start, what's with the double forward slashes?  If this is Windows, they 
should be double *backslashes* (when in a Java string).

But even if this works, I would have expected that the string should be a URI 
not a filename.  In Linux, I would write something like:


but where you have a Windows drive letter, you will need:


(note there are *3* slashes after "file:")


More information about the jdom-interest mailing list