Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 16041 invoked from network); 16 May 2003 06:24:29 -0000 Received: from pop.comtron.net (212.127.32.12) by daedalus.apache.org with SMTP; 16 May 2003 06:24:29 -0000 Received: from ACSW2KHHNKE (unknown [217.110.127.140]) by pop.comtron.net (Postfix) with SMTP id B17B2150C86 for ; Fri, 16 May 2003 08:24:30 +0200 (CEST) Message-ID: <002a01c31b73$d44d71a0$0202a8c0@ACSW2KHHNKE> From: =?ISO-8859-15?Q?Norbert_Kr=F6meke?= To: "Jakarta Commons Users List" References: <001101c31b6b$256bfab0$0202a8c0@ACSW2KHHNKE> <1053064513.2524.243.camel@pcsimon.ecnnz.ecnetwork.co.nz> Subject: Re: [digester]: Is there a way to populate bean tags by only onecall Date: Fri, 16 May 2003 08:24:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Simon, Thanks for your answer, but haw can I put the "tag-name" and "tag-body" to my function "addParam" ? Have I any possibility to extract the "tag-name" if I use ""? Sorry for this naive question, but I am still beginner in this stuff. Regards, Norbert ----- Original Message ----- From: "Simon Kitching" To: "Jakarta Commons Users List" Sent: Friday, May 16, 2003 7:55 AM Subject: Re: [digester]: Is there a way to populate bean tags by only onecall > On Fri, 2003-05-16 at 17:22, Norbert Kr�meke wrote: > > Hi, > > > > I'm looking for the solution to resolve fallowing problem. The XML input > > looks like this : > > > > ... > > > > 1234567 > > 666666666 > > .... > > tag-body > > > > > > I want to use only one function to collect all this 'sub-tags' from by > > call of addParam(tag-name, tag-body). > > > > How can I do it if I use digester-rules.dtd file. > > I've not done this myself, so the following is just a guess. > > I think you'll first have to use "ExtendedBaseRules" rather than the > default "RulesBase" class as the pattern-matching engine, so that you > can use patterns with trailing wildcards. > > I don't know if the XmlRules stuff allows you to do this from an xml > config file, but it is easy to do in code: > digester.setRules(new ExtendedBaseRules()); > > You should then be able to add a CallMethodRule triggered by the pattern > "parameters/*". > > Regards, > > Simon > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > >