commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Collins, Russell" <rcoll...@corelogic.com>
Subject RE: [Digester] Rules on Attributes
Date Wed, 23 Feb 2011 14:17:43 GMT
Thank you.  I will look at those methods.


Russell Collins
Sr. Software Engineer
CoreLogic Spatial Solutions

"Do or do not, there is no try." - Yoda

-----Original Message-----
From: simone.tripodi@gmail.com [mailto:simone.tripodi@gmail.com] On Behalf Of Simone Tripodi
Sent: Wednesday, February 23, 2011 1:53 AM
To: Commons Users List
Subject: Re: [Digester] Rules on Attributes

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
<rcollins@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:rcollins@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-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


***************************
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.
****************************
Mime
View raw message