I would guess in your case the errors are happening when you to the PackageBuilder.addPackage()
instead, try PackageBuilder.addPackageFromDrl(...) - it will then give you just one place to look for errors. Michael. On 4/30/07, Li Nao <[EMAIL PROTECTED]> wrote:
Hi, all, I am totally confused when I am trying to catch the paser errors when parsing a xml string, would anyone like to help me to clear the problems? when I wrote the following codes" final DrlParser drlParser = new DrlParser(); PackageDescr drlPkgDescr = drlParser.parse(drlXmlString); List errors = drlParser.getErrors()", the errors.size()=0 and there are no error printed at the console; when I wrote codes like these" final DrlParser drlParser = new DrlParser(); PackageDescr drlPkgDescr = drlParser.parse(drlXmlString); List errors = drlParser.getErrors() final PackageBuilder builder = new PackageBuilder(); builder.addPackage(drlPkgDescr); ", the errors.size() is still equal to zero, but there are errors printed at the console (I put some syntax errors in drlXmlString). How can I get the errors as the console shows? (I am using jbossrules-3.0.1) Your kind help would be very appreciated! Thank you! Best regards! Li Nao [EMAIL PROTECTED] 2007-04-30