commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: [digester] parsing XML attributes but not as bean props
Date Tue, 25 Mar 2003 15:14:37 GMT


Simon Kitching wrote:

> XPath isn't supported, but the method
>    digester.addCallParam(pattern, index, attributeName)
> should do the job, eg
>    digester.addCallParam("uda", 2, "type");
> will pass the value of the "type" attribute on the node matched by the
> pattern "uda" as the third parameter.

That's exactly what I needed!  I must have missed that overloaded form 
of addCallParam (looking too hard for attribute-specific methods!). 
Thanks a lot Simon.


Erik


Mime
View raw message