Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 71975 invoked from network); 4 Dec 2001 16:46:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Dec 2001 16:46:42 -0000 Received: (qmail 7517 invoked by uid 97); 4 Dec 2001 16:46:44 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 7472 invoked by uid 97); 4 Dec 2001 16:46:42 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 7461 invoked from network); 4 Dec 2001 16:46:42 -0000 Message-ID: <1f8b01c17ce2$de8cd830$9865fea9@spiritsoft.com> From: "James Strachan" To: "Jakarta Commons Developers" Subject: [digester] setting attributes & text content on the same object... Date: Tue, 4 Dec 2001 16:43:56 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Has anyone found any ways to do the following in digester. Imagine the folllowing class public class Param { public void setName(String name); public void setValue(String name); } And I want to parse XML like this... bar And I want the text value of the element to be associated with the 'value' property of the Param. Then in Digester I'm doing this... String path = "foo/param"; addObjectCreate( path, paramClassName, "className" ); addSetProperties( path ); addCallMethod( path, "setValue", 0 ); addSetNext( path, "addParam", paramClassName ); Which works but the value is never set. Is anyone aware of any way around this problem? I'm guessing its a current digester limitation. I know I can parse this fine... Which is a work around for now - I'm just wondering if there's a way of using attributes and text content for the same object & element in digester. James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: