Hi Russell,
use the SetPropertiesRule[1] to extract properties from attributes,
this is what you need for your purpose!
HTH,
Simo

[1] http://s.apache.org/zJ

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Tue, Feb 22, 2011 at 9:49 PM, Collins, Russell
<rcoll...@corelogic.com> wrote:
> I am new to Digester so bear with me if this has been answered before.  I 
> would like to create rules based on the attributes of elements.  From what I 
> am seeing, the way to create rules is based on documents that look like this:
>
> <parent>
>   <child>
>     <name>child1</name>
>  </child>
> </parent>
>
> What I would like to be able to do is parse a document that looks like this:
>
>
> <parent childid="2" name="Something" />
>
> <parent childid="4" name="SomethingElse" />
>
>
> Can this be accomplished with digester?  If not, is there another tool that 
> would parse this information easier?
>
>
> Russell Collins
> Sr. Software Engineer
> CoreLogic Spatial Solutions
> Direct: 512.977.3206
> mailto:rcoll...@corelogic.com
>
>
> "Do or do not, there is no try." - Yoda
>
>
> ________________________________
> ***************************
> This message may contain confidential or proprietary information intended only
> for the use of the addressee(s) named above or may contain information that is
> legally privileged. If you are not the intended addressee, or the person
> responsible for delivering it to the intended addressee, you are hereby
> notified that reading, disseminating, distributing or copying this message is
> strictly prohibited. If you have received this message by mistake, please
> immediately notify us by replying to the message and delete the original
> message and any copies immediately thereafter.
>
> Thank you.
> ****************************
>

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

Reply via email to