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"> </span> <span class="m"><?</span><span class="pi">xml
version="1.0" encoding="UTF-8" </span><span class="m">?></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"><</span><span class="t">Envelope</span><span class="ns"> xmlns:xsi</span><span class="m">
="</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">"</span><span class="t"> xsi:noNamespaceSchemaLocation</span><span class="m">
="</span><b>schema1.xsd</b><span class="m">"</span><span class="m">></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"><</span><span class="t">Header</span><span class="m">></span></div>
<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">tDateTime</span><span class="m">></span><span class="tx">2006-01-17T08:42:17+08:00</span><span class="m">
</</span><span class="t">DateTime</span><span class="m">><br><data>hello world</data><br></span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span></div></div><div><span class="b"></span><span class="m"></</span><span class="t">Header</span><span class="m">></span><a class="b" onfocus="h()" onclick="return false" href="#">
-</a><span class="b"><br><</span><span class="m">/</span><span class="t">Envelope</span><span class="m">></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&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="
<a href="http://www.w3.org/2001/XMLSchema-instance%22">http://www.w3.org/2001/XMLSchema-instance"</a> <br>xsi:noNamespaceSchemaLocation="schemaXY.xsd"<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>