<html><head></head><body>Thank you Travers,<br>
<br>
The xerces 1.4.3 version works with the namespace:<br>
<br>
&lt;xsd:schema xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>&gt;<br>
<br>
I still don't undersand how the xerces.jar is being picked up as I am running with:<br>
<br>
java -classpath ../build/jdom.jar:. SAXBuilderDemo<br>
<br>
which doesn't include the xerces.jar file?<br>
<br>
cheers<br>
Neil<br>
<br>
<br>
Travers Waker wrote:<br>
<blockquote type="cite" cite="mid:002701c15d33$0063cba0$1b01a8c0@travlaptop"><pre wrap="">Hi Neil.<br><br></pre>
  <blockquote type="cite"><pre wrap="">my xml file has:<br><br>&lt;?xml version="1.0"?&gt;<br>&lt;Book xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>xsi:noNamespaceSchemaLocation="myschema.xsd"&gt;<br></pre></blockquote>
    <pre wrap=""><!----><br>This could be a problem.  The version of Xerces that ships with JDOM b7 is 1.2.0, from 09/2000, so it's unlikely to support<br>the schema spec of 2001.  It's probably wanting:<br><br> xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www/w3/org/2000/XX/XMLSchema-instance">"http://www/w3/org/2000/XX/XMLSchema-instance"</a><br><br>where XX is some month, although I don't know which one.<br><br>What I would try first is to download the latest version of XercesJ 1 from <a class="moz-txt-link-abbreviated" href="http://www.apache.org">www.apache.org</a>, and use that xerces.jar instead of<br>the old one that shipped with JDOM b7.  Then you can use xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>.<br><br>I see that you tried using XercesJ 2, which maybe you thought was the latest version of the Xerces jar that shipped with<br>JDOM, but actually Xerces J 2 is a completely different parser to XercesJ 1, and does not support schema validation yet, I<br>think.<br><br>The latest official Xerces release is 1.4.3.<br><br>Good luck.<br><br>Travers<br><br><br><br><br></pre>
    </blockquote>
    <br>
    <br>
</body></html>