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. Cheers, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]