I am the client, i receive messages from the server.<br><br>this is a sample of the message I would receive<br><br><br><div class="e"><span class="b">&nbsp;</span> <span class="m">&lt;?</span><span class="pi">xml 
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; </span><span class="m">?&gt;</span> </div>
<div class="k"><span></span><span class="m"></span> 
 </div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="b" onfocus="h()" onclick="return false" href="#">-</a> <span class="m">&lt;</span><span class="t">Envelope</span><span class="ns"> xmlns:xsi</span><span class="m">
=&quot;</span><b class="ns"><a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a></b><span class="m">&quot;</span><span class="t"> xsi:noNamespaceSchemaLocation</span><span class="m">
=&quot;</span><b>schema1.xsd</b><span class="m">&quot;</span><span class="m">&gt;</span></div>
<div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="b" onfocus="h()" onclick="return false" href="#">-</a> <span class="m">&lt;</span><span class="t">Header</span><span class="m">&gt;</span></div>
<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">tDateTime</span><span class="m">&gt;</span><span class="tx">2006-01-17T08:42:17+08:00</span><span class="m">
&lt;/</span><span class="t">DateTime</span><span class="m">&gt;<br>&lt;data&gt;hello world&lt;/data&gt;<br></span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span></div></div><div><span class="b"></span><span class="m">&lt;/</span><span class="t">Header</span><span class="m">&gt;</span><a class="b" onfocus="h()" onclick="return false" href="#">
-</a><span class="b"><br>&lt;</span><span class="m">/</span><span class="t">Envelope</span><span class="m">&gt;</span></div></div></div>
<div class="e">
</div>
</div></div><br><br>So what is this entityresolver that you are talking about?? Could I use that to determine the correct schema???<br><br>best regards<br>lars<br><br><br><br><br><div><span class="gmail_quote">2006/5/10, 
</span><b>Thomas Scheffler</b> 
    <a href="mailto:jdom-interest%40jdom.org?Subject=%5Bjdom-interest%5D%20Validation%20strategy&amp;In-Reply-To=98f283590605100215l611803b7l4358a27edc737834%40mail.gmail.com" title="[jdom-interest] Validation strategy">
thomas.scheffler at uni-jena.de</a>;<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">




<div dir="ltr" align="left"><span></span>Let not the server choose -- but the client tell -- what kind of message this <br><pre>is before parsing.<br><br>just embed something like this in the root element:<br><br> xmlns:xsi=&quot;
<a href="http://www.w3.org/2001/XMLSchema-instance%22">http://www.w3.org/2001/XMLSchema-instance&quot;</a> <br>xsi:noNamespaceSchemaLocation=&quot;schemaXY.xsd&quot;<br><br>On server side use an custom EntityResolver or what its called to retrieve the 
<br>schema.<br><br>This is the way I would implement this. I don't know if you have controll over <br>the client code though.<br><br>regards<br><br>Thomas</pre></div></div></blockquote></div>