<span class="gmail_quote"></span>I receive messages in the form of an XML document. I am able to receive
up to 44 different messages, and i therefor also have 44 different xml
schemas.<br><div style="direction: ltr;"><br>When i receive a message, how do I know which schema to use to validate against?? <br><br>my current code is this, and it works smoothly.<br><br><br>SAXBuilder builder = new SAXBuilder(&quot;
org.apache.xerces.parsers.SAXParser
&quot;, true);<br>builder.setFeature(&quot;<a href="http://apache.org/xml/features/validation/schema" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://apache.org/xml/features/validation/schema
</a>&quot;, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>builder.setProperty(<br>&nbsp;&nbsp;&nbsp; &quot;<a href="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation</a>&quot;,&nbsp; <br>&nbsp;&nbsp;&nbsp; &quot;schema1.xsd&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> //Load the xml<br>Document document;<br>document = builder.build(&quot;incoming.xml
&quot;);
<br>

</div>