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 <MessageType>TypeA</MessageType> 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="TypeA.xsd" attribute<br><br>my code is the following<br><br>SAXBuilder builder = new SAXBuilder("
org.apache.xerces.parsers.SAXParser", true);<br> <br>builder.setFeature("<a href="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</a>", true);<br>builder.setProperty
(<br> "<a href="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation">http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation</a>", <br> "
TypeA.xsd");<br><br>//Load the xml<br> Document document;<br> document = builder.build("incoming.xml");<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 <<a href="mailto:mike@saxonica.com">mike@saxonica.com</a>>:</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"> > </font></span>What do you meen by tell the
rules for choosing a schema? <br><span><font color="#0000ff" face="Arial" size="2"> </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> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Either you distinguish them by the "channel" 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> </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> </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>