<br>&nbsp;&nbsp; Niloy,<br><br>&nbsp;&nbsp; I think there maybe a confusion here. You can create the full descriptor tree without any problems, since that&#39;s what the parser does. Just create the AND tree for the LHS and set it to your RuleDescr and after that add it to the PackageDescr.
<br><br>&nbsp;&nbsp; When in doubt, look at what the parser does. Here you can see the ANTLR grammar for DRL files:<br><br><a href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g">
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/lang/DRL.g</a><br><br>&nbsp;&nbsp; Hope it helps.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><br><br><div><span class="gmail_quote">2007/5/18, Niloy Debnath &lt;
<a href="mailto:niloy_rcc@yahoo.co.in">niloy_rcc@yahoo.co.in</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;">hi ,<br><br>i want to convert a DRL file into its equivalent XML file using 
JbossRules-3.0.5. i have used two methods for this conversion<br>       <br style="font-weight: bold;">       <span style="font-weight: bold;">Method 1:<br>       <br>       </span>In this method i&#39;ve taken a DRL file as an input and converted it into its equivalent XML file. i&#39;ve attached a sample program named 
<span style="font-weight: bold;">FibonacciDrl2Xml</span> which will help you to understand my first method.<br>       <span style="font-weight: bold;"><br> Method 2:<br>       </span><br> In this method i dont want to take any rule file as an input. i want to create the rule objects and through
<span style="font-weight: bold;"> dump method of XmlDumper class </span>i want to convert it into XML<span style="font-weight: bold;"><br>       <br>       </span>now problem arises here...i can bind the <span style="font-weight: bold;">
RHS part </span>with<span style="font-weight: bold;"> PackageDescr
 </span>but not the<span style="font-weight: bold;"> LHS part </span>because we can not bind<span style="font-weight: bold;"> LiteralDescr,FieldBindingDescr,ColumnDescr etc with the PackageDescr and dump method only take PackageDescr object as a 
parameter.so i&#39;ve modified the existing XmlDumper class as per my requirement and converted HelloWorldExample into its equivalent XML.<br>       </span><br> i&#39;ve attached <span style="font-weight: bold;">HelloWorldXml 
</span>file which will give you a clear view about my program where i created the <span style="font-weight: bold;">rule objects</span> and <span style="font-weight: bold;">xmlDump</span> which is <span style="font-weight: bold;">
modified version of XmlDumper</span> as per my requirement .<br>       <span style="font-weight: bold;"><br> now i need to make xmlDump class more generic for method 2. How do i do that? i&#39;ve tried lot but i failed. i need your help.
<br>       <br> thanking you,<br> with regards,<br> Niloy
 Debnanth<br> (student)</span><p><span class="ad"> 
        

        
                <hr size="1"> 
Here's a new way to find what you&#39;re looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Yahoo! Answers
</a> </span></p><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br clear="all">
</blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>