<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>XmlDumper use</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT FACE="Arial">I would like to use the XmlDumper to convert my DRL to XML but am unsure of its use.<BR>
In particular, I am wondering where to get the proper instance of PackageDescr to feed to the dump() method:<BR>
<BR>
XmlDumper xmlDumper = new XmlDumper();<BR>
String xml = xmlDumper.dump( packageDescr );<BR>
<BR>
<BR>
the code I'm using to read the DRL is straight from an example in the distro:<BR>
<BR>
Reader source = new InputStreamReader( PartSelectorImpl.class.getResourceAsStream( ruleSetName ) );<BR>
PackageBuilder builder = new PackageBuilder();<BR>
builder.addPackageFromDrl( source );<BR>
Package pkg = builder.getPackage();<BR>
RuleBase ruleBase = RuleBaseFactory.newRuleBase();<BR>
ruleBase.addPackage( pkg );<BR>
<BR>
<BR>
Would someone mind pointing in the right direction?<BR>
<BR>
Thanks, Mark </FONT>
</P>
</BODY>
</HTML>