<font size="2"><font face="verdana,sans-serif">I&#39;m having this problem as well. I can live with the System.err messages, but i could use the XSD for configuration validation. Is there a way of obtaining this &quot;file&quot;?</font></font><div>
<font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font size="2"></font><font class="Apple-style-span" face="verdana, sans-serif">thanks in advance,</font></div><div><font class="Apple-style-span" face="verdana, sans-serif">_ miguel<br>
</font><div><font size="2"><font face="verdana,sans-serif"><br></font></font><br><div class="gmail_quote">2010/4/13 Chang Liu <span dir="ltr">&lt;<a href="mailto:CLiu@deltadentalmi.com">CLiu@deltadentalmi.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Hi there,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Error message:</p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(null: 5, 77): schema_reference.4: Failed to read schema document
&#39;<a href="http://drools.org/drools-5.0.xsd" target="_blank">drools.org/drools-5.0.xsd</a>&#39;, because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
&lt;xsd:schema&gt;.</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I ran into this issue when experimenting a project that
transforming the rules back and forth from DRL to XML with utility classes as documented
in following link:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch04.html#d0e5750" target="_blank">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch04.html#d0e5750</a></p>


<p class="MsoNormal"> </p>

<p class="MsoNormal">My code:</p>

<p class="MsoNormal">…</p>

<p class="MsoNormal">XmlPackageReader xmlReader = new XmlPackageReader(null);</p>

<p class="MsoNormal">StringReader sr = new StringReader(rulesInXml);</p>

<p class="MsoNormal">try {</p>

<p class="MsoNormal">                PackageDescr
 packageDescr = xmlReader.read(sr);</p>

<p class="MsoNormal" style="text-indent:.5in">DrlDumper drlDumper = new
DrlDumper();</p>

<p class="MsoNormal" style="text-indent:.5in">String drlString =
drlDumper.dump(packageDescr);</p>

<p class="MsoNormal">}</p>

<p class="MsoNormal">catch (Exception ex) {</p>

<p class="MsoNormal">                System.out.println(ex);</p>

<p class="MsoNormal">}</p>

<p class="MsoNormal">…</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">where string “rulesInXml” is the result xml
string transformed from a valid .drl file. It looks like:</p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt; </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;package
name=&quot;com.sample&quot;  </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      xmlns=&quot;<a href="http://drools.org/drools-5.0" target="_blank">http://drools.org/drools-5.0</a>&quot;
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      xmlns:xs=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      <span style="background:yellow">xs:schemaLocation=&quot;<a href="http://drools.org/drools-5.0" target="_blank">http://drools.org/drools-5.0</a>
<a href="http://drools.org/drools-5.0.xsd" target="_blank">drools.org/drools-5.0.xsd</a>&quot;</span>&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;import name=&quot;com.sample.DroolsTest.Message&quot;
/&gt; </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;rule name=&quot;Hello
World&quot;&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;lhs&gt;&lt;pattern
identifier=&quot;m&quot; object-type=&quot;Message&quot; &gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;field-constraint
field-name=&quot;status&quot;&gt; </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;qualified-identifier-restriction
evaluator=&quot;==&quot;&gt;Message.HELLO &lt;/qualified-identifier-restriction&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/field-constraint&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;field-binding
field-name=&quot;message&quot; identifier=&quot;myMessage&quot; /&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/pattern&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/lhs&gt;</span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;rhs&gt;       System.out.println(
myMessage ); </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            m.setMessage(
&quot;Goodbye cruel world&quot; );</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            m.setStatus(
Message.GOODBYE );</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            update(
m );</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/rhs&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/rule&gt;</span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;rule name=&quot;GoodBye&quot;&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;lhs&gt;&lt;pattern
object-type=&quot;Message&quot; &gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;field-constraint
field-name=&quot;status&quot;&gt; </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;qualified-identifier-restriction
evaluator=&quot;==&quot;&gt;Message.GOODBYE
&lt;/qualified-identifier-restriction&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/field-constraint&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;field-binding
field-name=&quot;message&quot; identifier=&quot;myMessage&quot; /&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/pattern&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/lhs&gt;</span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;rhs&gt;       System.out.println(
myMessage );</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/rhs&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/rule&gt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&lt;/package&gt;</span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></p>

<p class="MsoNormal">What did I miss here?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Moreover, the Drools 5.0 API’s for XML support are
poorly-documented. For example, the constructors of class “XmlPackageReader”
has an arg of “SemanticModules” type which is not documented. <span style="font-family:Wingdings">L</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any help would be highly appreciated!</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal">Chang</p>

</div>


<hr>CONFIDENTIALITY NOTICE: The information contained in this email is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, you are hereby notified that any unauthorized review, use, dissemination, distribution or copying of this communication is prohibited and may be subject to legal restriction or sanction. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of the information and all copies. If you are the intended recipient but do not wish to receive communications through this medium, please advise the sender immediately. Thank you<br>

</div>


<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>&quot;To understand what is recursion you must first understand recursion&quot;<br>
</div></div>