<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("
org.apache.xerces.parsers.SAXParser
", true);<br>builder.setFeature("<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>", true);<br> <br>builder.setProperty(<br> "<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>", <br> "schema1.xsd");<br> <br> //Load the xml<br>Document document;<br>document = builder.build("incoming.xml
");
<br>
</div>