commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: [digester] parsing xmlrpc message [WAS Re: parsing xmlrpc message]
Date Thu, 22 Jul 2004 00:43:59 GMT
On Thu, 2004-07-22 at 08:27, robert burrell donkin wrote:
> you may need to use the ExtendedBaseRules (or create a regex rule 
> implementation from something like ORO) if the base pattern matching 
> rule vocabulary is not rich enough but it's hard to give you more help 
> without the idea of the xml and the source to which you're trying to 
> map.
> 

Digester does handle recursive structures, at least for the basic cases.

The standard rules engine allows wildcard prefixes, eg
 "*/window/widget"

This pattern will match both of the "widget" tags, firing the same Rule
(which is generally what is desired).

 <gui>
   <window>
    <widget id="1"/>
    <window>
      <widget id="2"/>
    </window>
  </window>
 </gui>

If this doesn't give you what you want, please let us know why.
As Robert said, there are a number of other pattern-matching engines
(ExtendedBaseRules and RegexRules) that might work for you.

Regards,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message