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've taken a DRL file as an input and converted it into its equivalent XML file. i'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've modified the existing XmlDumper class as per my requirement and converted HelloWorldExample into its equivalent XML.<br> </span><br> i'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've tried lot but i failed. i need your help.<br> <br> thanking you,<br> with regards,<br> Niloy
Debnanth<br> (student)</span><p> 
        
        
                <hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>