hello,<br>i use drools 5.0 and i have a big problem while i try to write a rule in xml format.<br>my example rule is the follow:<br>---------------------------------------------------------------------------<br><pre class="code-xml">
&lt;rule-set name=<span class="code-quote">&quot;cheese rules&quot;</span><br>    xmlns=<span class="code-quote">&quot;<a href="http://drools.org/rules">http://drools.org/rules</a>&quot;</span>    <br>    <span class="code-keyword">xmlns:java</span>=<span class="code-quote">&quot;<a href="http://drools.org/semantics/java">http://drools.org/semantics/java</a>&quot;</span><br>
    <span class="code-keyword">xmlns:xs</span>=<span class="code-quote">&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</span><br>    xs:schemaLocation=&quot;<a href="http://drools.org/rules">http://drools.org/rules</a> rules.xsd<br>
                                       <a href="http://drools.org/semantics/java">http://drools.org/semantics/java</a> java.xsd&quot;&gt;<br><br>    <span class="code-tag">&lt;rule name=<span class="code-quote">&quot;Bob Likes Cheese&quot;</span>&gt;</span><br>
        <span class="code-tag">&lt;parameter identifier=<span class="code-quote">&quot;bob&quot;</span>&gt;</span><br>            <span class="code-tag">&lt;class&gt;</span>org.drools.examples.simple.Bob<span class="code-tag">&lt;/class&gt;</span><br>
        <span class="code-tag">&lt;/parameter&gt;</span><br>        <span class="code-tag">&lt;java:condition&gt;</span>bob.likesCheese() == true<span class="code-tag">&lt;/java:condition&gt;</span><br>        <span class="code-tag">&lt;java:consequence&gt;</span><br>
            System.out.println( <span class="code-quote">&quot;Bob likes cheese.&quot;</span> );<br>        <span class="code-tag">&lt;/java:consequence&gt;</span><br>    <span class="code-tag">&lt;/rule&gt;</span><br><br>
<span class="code-tag">&lt;/rule-set&gt;</span><br>-----------------------------------------------------------<br><br></pre>and editor (eclipse) show me this error and im unable to run program:<br>[1,0]: [ERR 101] Line 1:0 no viable alternative at input &#39;&lt;&#39;<br>
java.lang.IllegalArgumentException: Could not parse knowledge.<br>    at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:67)<br>    at com.sample.DroolsTest.main(DroolsTest.java:24)<br><br>someone know how to fix it? is this cause eclipse see the &#39;&lt;&#39; as a boolean operator and not as xml opening tag?<br>
<br>thanks in advice.<br>