Any particular XML schema?<br><br>The simplest answer would be to wrap your package DRL into an XML element:-<br><br>&lt;package&gt;<br>package com.rules<br>import com.model.Bank;<br><br>rule &quot;Your First Rule&quot;<br>
       <br>        when<br>                $b1:Bank(name==&quot;Manohar&quot;, accntno==&quot;533&quot;)<br>        then<br>       <br>                $b1.setBalance(5000);<br>                $b1.setDeposit($b1.getBalance()+1000);<br>
               <br>end<br><br>rule &quot;Your Second Rule&quot;<br>       <br>        when<br>                $b1:Bank(name==&quot;Ajay&quot;, accntno==&quot;536&quot;)<br>        then<br>       <br>         <br>                $b1.setBalance(6000);<br>
                $b1.setDeposit($b1.getBalance()+2000);<br>               <br>end<br>&lt;/package&gt;<br><br>I suspect however you are after a little more?<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">
2011/10/11 Manohar Kokkula <span dir="ltr">&lt;<a href="mailto:manohar.kokkula@tcs.com">manohar.kokkula@tcs.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font size="3">Hi All! <br>
<br>
I&#39;m trying to convert a .drl file to xml</font>
<br><font size="3">But im not sure how to approach for this,</font>
<br><font size="3">Please help me regarding the same.</font>
<br><font size="3"><b>Here is my drl file:</b></font>
<br>
<br><font size="3">package com.rules</font>
<br><font size="3">import com.model.Bank;</font>
<br>
<br><font size="3">rule &quot;Your First Rule&quot;</font>
<br><font size="3">        </font>
<br><font size="3">        when</font>
<br><font size="3">             
  $b1:Bank(name==&quot;Manohar&quot;, accntno==&quot;533&quot;)</font>
<br><font size="3">        then </font>
<br><font size="3">        </font>
<br><font size="3">             
  $b1.setBalance(5000);</font>
<br><font size="3">             
  $b1.setDeposit($b1.getBalance()+1000);</font>
<br><font size="3">             
  </font>
<br><font size="3">end</font>
<br>
<br><font size="3">rule &quot;Your Second Rule&quot;</font>
<br><font size="3">        </font>
<br><font size="3">        when</font>
<br><font size="3">             
  $b1:Bank(name==&quot;Ajay&quot;, accntno==&quot;536&quot;)</font>
<br><font size="3">        then </font>
<br><font size="3">        </font>
<br><font size="3">         </font>
<br><font size="3">             
  $b1.setBalance(6000);</font>
<br><font size="3">             
  $b1.setDeposit($b1.getBalance()+2000);</font>
<br><font size="3">             
  </font>
<br><font size="3">end</font>
<br>
<br>
<br><br>
<br>
<br><font size="3" face="sans-serif">Thanks and Regards<br>
Manohar Kokkula<br>
Mailto: <a href="mailto:manohar.kokkula@tcs.com" target="_blank">manohar.kokkula@tcs.com</a><br>
</font><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre><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>