RE: [Digester] Rules on Attributes

2011-02-23 Thread Collins, Russell
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.trip...@gmail.com [mailto:simone.trip...@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
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
 namechild1/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


***
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.



[Digester] Rules on Attributes

2011-02-22 Thread Collins, Russell
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
 namechild1/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.



Re: [Digester] Rules on Attributes

2011-02-22 Thread Simone Tripodi
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
     namechild1/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