Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 9428 invoked from network); 9 Sep 2004 18:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Sep 2004 18:38:20 -0000 Received: (qmail 7025 invoked by uid 500); 9 Sep 2004 18:38:11 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 7010 invoked by uid 500); 9 Sep 2004 18:38:10 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 6995 invoked by uid 99); 9 Sep 2004 18:38:10 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.101] (HELO web52306.mail.yahoo.com) (206.190.39.101) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 09 Sep 2004 11:38:10 -0700 Message-ID: <20040909183807.32270.qmail@web52306.mail.yahoo.com> Received: from [68.171.238.16] by web52306.mail.yahoo.com via HTTP; Thu, 09 Sep 2004 11:38:07 PDT Date: Thu, 9 Sep 2004 11:38:07 -0700 (PDT) From: Reid Pinchback Subject: RE: Property not being set [Digester] To: Jakarta Commons Users List In-Reply-To: <5A18926EC5E8C24BBA66858D79D13DF001AA1562@cnncex15.turner.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Almost forgot, there is a way to both avoid changing the XML and avoid changing the code. Use a SetPropertiesRule and specify the mapping of the attribute name to a property name. Digester d=new Digester(); // set rules as usual, and also Rule spr=new SetPropertiesRule("foo","fooText"); d.addRule(yourPattern, spr); // parse as usual _______________________________ Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping. http://shopping.yahoo.com/backtoschool --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org