Sorry for the lack of information.<br><br>First of all this has to do with JDOM because that's the parser i want to use. <br><br>Each of the 44 message types has a &lt;MessageType&gt;TypeA&lt;/MessageType&gt; tag.<br><br>So i wont know before i open the message what type it is. And that's bugging me.
<br><br>Also the message type is indirectly described in the root element by a xsi:noNamespaceSchemaLocation=&quot;TypeA.xsd&quot; attribute<br><br>my code is the following<br><br>SAXBuilder builder = new SAXBuilder(&quot;
org.apache.xerces.parsers.SAXParser&quot;, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>builder.setFeature(&quot;<a href="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</a>&quot;, true);<br>builder.setProperty
(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation">http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation</a>&quot;,&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;
TypeA.xsd&quot;);<br><br>//Load the xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Document document;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document = builder.build(&quot;incoming.xml&quot;);<br><br>Because I am not using namespaces, it's not possible to add more than one xsd file in the setProperty method... if i used namespaces, i could add as many as i wanted to, and then the problem would be solved.
<br><br><br><div><span class="gmail_quote">2006/5/10, Michael Kay &lt;<a href="mailto:mike@saxonica.com">mike@saxonica.com</a>&gt;:</span><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;"><span class="q">




<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">&nbsp;&gt;&nbsp;</font></span>What do you meen by tell the 
rules for choosing a schema?&nbsp;<br><span><font color="#0000ff" face="Arial" size="2">&nbsp;</font></span></div></span></div><div style="direction: ltr;">
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">You said you have 44 message types. Given a message, how do 
you know what type of message it's supposed to be?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Either you distinguish them by the &quot;channel&quot; they arrived 
on (e.g. the email address they were sent to or from, or the incoming FTP 
directory used), or you distinguish them by content. If you can't do either, 
then you're stuck.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">I'm wondering what all of this has to do with 
JDOM?</font></span></div></div><div style="direction: ltr;"><span class="e" id="q_10b1e029fb30d59c_2">
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Michael Kay</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"><a href="http://www.saxonica.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.saxonica.com/</a></font></span>
</div>

</span></div></blockquote></div><br>