<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Steve,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Thank you . It works.</DIV>
<DIV>I have now a example with a file XML without a schema's reference
( But I keep also the other example with the reference inside )</DIV>
<DIV>I don't know if one solution or the other is the best
standard. </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>File countriesbuild_test.xml</FONT></DIV>
<DIV><FONT face=Arial
size=2>----------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0"
encoding="UTF-8"?><BR><countries><BR> <country name="England"
capital="London"/><BR> <country name="Wales"
capital="Cardiff"/><BR> <country name="Scotland"
capital="Edinburgh"/><BR></countries></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And I use the setProperty() in Java </FONT></DIV>
<DIV><FONT face=Arial
size=2>----------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2> builder.setProperty("<A
href="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation">http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation</A>",<BR>
"<A
href="file:///C:/Projets/Jdom-1-0/xml/countries_test.xsd">file:///C:/Projets/Jdom-1-0/xml/countries_test.xsd</A>");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And the validation is OK</FONT></DIV>
<DIV><FONT face=Arial size=2>-----------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>xml/countriesbuild_test.xml is well
formed</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>OR , </FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>-------</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT>if I delete an attribute ( for example
: name="England" )</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>I have : </FONT><FONT face=Arial size=2>Error on
line 3 of document <A
href="file:///C:/Projets/Jdom-1-0/xml/countriesbuild_test.xml">file:///C:/Projets/Jdom-1-0/xml/countriesbuild_test.xml</A>:
cvc-complex-type.4: Attribute 'name' must appear on element
'country'.</FONT></DIV>
<DIV><FONT face=Arial size=2>The validation works.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank's</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>