Hi All,
I'm currently trying to merge two (or more) rule packages in XML syntax into
a single XML Document.
I tryed to use a PackageBuilder to join multiple PackageDescr. My problem is
that the XmlDumper expects a PackageDescr and there seems to be no way to
get a PackageDescr out of a PackageBuilder.
Here is what I tryed:
Document ruledom;
XMLOutputter outputter = new XMLOutputter();
String rulestring = outputter.outputString(ruledom);
ByteArrayInputStream in = new ByteArrayInputStream(rulestring.getBytes());
PackageDescr pack = xmlr.read(in);
builder.addPackage(pack);
XmlDumper dumper = new XmlDumper();
dumper.dump(?);
Is there any possibility to get a PackageDescr out of the PackageBuilder?
Is there another way to merge XML rule files?
Any help is appreciated
Thanks, Ben
--
View this message in context:
http://drools.46999.n3.nabble.com/Merging-two-XML-rules-into-a-single-XML...
Sent from the Drools: User forum mailing list archive at
Nabble.com.