commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <>
Subject RE: Digester beginner question
Date Tue, 26 Apr 2005 05:49:25 GMT
On Tue, 2005-04-26 at 17:40 +1200, Simon Kitching wrote:
> Hi,
> Yep, I pretty much agree with Lance.
> Digester doesn't support xpath-like matching; it would be nice but is
> difficult and no-one has yet done so.
> Processing xml like
>   <attribute name="id">some-value</attribute>
> is awkward because info on the target field ("id") is provided in a
> different callback from the data.
> Lance's solution looks ok to me. It may not work right if the rule is
> associated with a wildcard pattern (eg "*/attribute") - if you need
> this, I would suggest replacing fieldName with a stack, or using the
> digester "named stacks" feature.

Hmm.. actually, for this rule, the content is always plain text by
definition, never nested data so I guess a simple field is ok in this
case, just as Lance had it.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message