From robertburrelldonkin@blueyonder.co.uk Wed Jul 9 18:41:56 2003 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 33987 invoked from network); 9 Jul 2003 18:41:56 -0000 Received: from smtp-out3.blueyonder.co.uk (195.188.213.6) by daedalus.apache.org with SMTP; 9 Jul 2003 18:41:56 -0000 Received: from localhost ([80.194.24.21]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.5329); Wed, 9 Jul 2003 19:42:00 +0100 Date: Wed, 9 Jul 2003 19:43:35 +0100 Subject: Re: [Digester] element names Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: robert burrell donkin To: "Jakarta Commons Users List" Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <3F6524FC-B23D-11D7-B18D-003065DC754C@blueyonder.co.uk> X-Mailer: Apple Mail (2.482) X-OriginalArrivalTime: 09 Jul 2003 18:42:00.0430 (UTC) FILETIME=[C85868E0:01C34649] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wednesday, July 9, 2003, at 01:11 PM, Lister, Tom (ANTS) wrote: > Hi > I have got the behaviour I want by extending the CallMethodRule as per the > code below (basically setting the bodyText to the element name). Then > configuring it as > digester.addCallMethod("FXTRADE/sale_ccy", "addCurrencyMapping", > 2); > digester.addCallParam("FXTRADE/sale_ccy", 0); > digester.addRule("FXTRADE/sale_ccy", new ElementNameParamRule(1)) > ; > My question is really given my two days experience of Digester, Is this a > sensible solution. maybe not the most elegant solution (still not bad given only two days of digester) but i think that it'd probably work fine. - robert