Re: Digester question

2007-02-01 Thread RamDeepak Ramesh
Hi Omer Berkman : I have used this long back, accept the fact about the performance. But we designed a in-house product for our own DAO, we used this digester to read the SQL ( in specific XML format ) and then manipulate them. Contact me if needed detailed information.( I need some time :-) ).

Re: Digester question

2007-02-01 Thread Niall Gallagher
Hi A much faster tool to convert XML into Java objects is Simple XML. It streams incomming XML and converts it into Java object instances as the XML is streamed in. Has many other powerful features that make it faster and much safer than Digester. You can check it out here:

Re: Digester question

2007-02-01 Thread Paul J DeCoursey
I've recently started using JAXB for this kind of thing, it's works fine and seems to perform well. Niall Gallagher wrote: Hi A much faster tool to convert XML into Java objects is Simple XML. It streams incomming XML and converts it into Java object instances as the XML is streamed in. Has

RE: Digester question

2007-02-01 Thread Steven Keens
Or you could use XMLBeans. Cheers, -- Steven Keens, PCI Geomatics -Original Message- From: Paul J DeCoursey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 09:46 To: Jakarta Commons Users List Subject: Re: Digester question I've recently started using JAXB

Re: digester question

2005-05-05 Thread Simon Kitching
On Thu, 2005-05-05 at 11:50 -0400, shailesh.ligade wrote: I have a an xml tr td colnum=c07/td td colnum=c18/td /tr I have class called Row and and another Rows Row class has two mthods (one for column and one for data) and Rows class has addRow(Row row) method code is

RE: Digester Question

2003-12-23 Thread Ivan Rekovic
The simplest way of grabing ReportSuccesses is to use SetPropertyRule. See documentation in digester distribution for this. Basically you will have to create digester, attach rule (with alias since ReportSuccesses is not valid bean name), add pattern (something like

Re: Digester Question

2003-12-23 Thread Juan Alvarado
Tim: Thanks for the help and the sample code. I really appreciate it. This will help us get up and running really fast. Take care, On Dec 22, 2003, at 8:23 PM, Tim O'Brien wrote: Juan, the Digester is pretty straightforward, I'd recommend using the XML rules sets. As far as Object - XML,

Re: Digester Question

2003-12-23 Thread Tim O'Brien
I do not know of any problem, but then again, I only use Betwixt in a very straightforward situation. If you would like to check on the open issues in Bugzilla, here is the link:

Re: Digester Question

2003-12-23 Thread Juan Alvarado
Ok great.. Keep me posted with that. Take care On Dec 23, 2003, at 1:52 PM, Tim O'Brien wrote: I do not know of any problem, but then again, I only use Betwixt in a very straightforward situation. If you would like to check on the open issues in Bugzilla, here is the link:

Re: Digester Question

2003-12-22 Thread Simon Kitching
On Tue, 2003-12-23 at 11:45, Juan Alvarado wrote: Hello: Hi Juan, In the CVS repository there are now some examples of using Digester that will hopefully answer your questions. You can see these examples by following the instructions for checking out files from CVS, or use the CVS web

Re: Digester Question

2003-12-22 Thread Juan Alvarado
Simon thanks for all of your help and comments. Off the top of your head can you tell me what tools you have used if any that will allow me to convert from object to xml. Thanks in advance On Dec 22, 2003, at 6:14 PM, Simon Kitching wrote: On Tue, 2003-12-23 at 11:45, Juan Alvarado wrote:

Re: Digester Question

2003-12-22 Thread Gary S. Cuozzo
Juan, I don't know if it will suit your needs, but I've had good luck with betwixt project which I think is based on Digester. Gary. On Mon, 2003-12-22 at 18:18, Juan Alvarado wrote: Simon thanks for all of your help and comments. Off the top of your head can you tell me what tools you

Re: Digester Question

2003-12-22 Thread Simon Kitching
On Tue, 2003-12-23 at 12:18, Juan Alvarado wrote: Simon thanks for all of your help and comments. Off the top of your head can you tell me what tools you have used if any that will allow me to convert from object to xml. I've never needed to do object-xml, but I know of the following

Re: Digester Question

2003-12-22 Thread Juan Alvarado
Ok thanks for the help. On Dec 22, 2003, at 6:25 PM, Simon Kitching wrote: On Tue, 2003-12-23 at 12:18, Juan Alvarado wrote: Simon thanks for all of your help and comments. Off the top of your head can you tell me what tools you have used if any that will allow me to convert from object to

Re: Digester Question

2003-12-22 Thread Juan Alvarado
Thanks Gary, I will look into it. On Dec 22, 2003, at 6:25 PM, Gary S. Cuozzo wrote: Juan, I don't know if it will suit your needs, but I've had good luck with betwixt project which I think is based on Digester. Gary. On Mon, 2003-12-22 at 18:18, Juan Alvarado wrote: Simon thanks for all of

Re: Digester Question

2003-12-22 Thread Tim O'Brien
Juan, the Digester is pretty straightforward, I'd recommend using the XML rules sets. As far as Object - XML, try using Betwixt. It is very straightfoward. Assume you have a Play JavaBean with a genre, year, language, and author properties. Create a file named Play.betwixt, and make sure

RE: [Digester] Question on CallMethodRule

2003-11-21 Thread Simon Kitching
On Fri, 2003-11-21 at 18:50, Daniel Joshua wrote: Could you give an example/link on how to do this. I could not find anything related on Google :( The package is: http://jakarta.apache.org/commons/beanutils.html See class ConvertUtils in the javadoc. Regards, Simon

RE: [Digester] Question on CallMethodRule

2003-11-20 Thread Simon Kitching
On Fri, 2003-11-21 at 02:38, Shapira, Yoav wrote: Howdy, Thanks for your help: I actually figured it out yesterday but lost this thread so I couldn't post my solution. The property I was looking to set was a java.net.URL. When I changed it to a String things worked fine. Just a quick

RE: [Digester] Question on CallMethodRule

2003-11-20 Thread Daniel Joshua
Could you give an example/link on how to do this. I could not find anything related on Google :( Regards, Daniel -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, 21 November, 2003 5:54 AM To: Jakarta Commons Users List Subject: RE: [Digester] Question

Re: [Digester] Question on CallMethodRule

2003-11-19 Thread José Antonio Pérez Testa
Hi, again! digester.addSetNext(a,addB); Shapira, Yoav wrote: Hi, I have this XML: a b ... /b b ... /b b ... /b /a Class A has a public no-args constructor and a method public void addB(B b). I have the following: digester.addObjectCreate(a, A.class); digester.addObjectCreate(a/b, B.class);

Re: [Digester] Question on CallMethodRule

2003-11-19 Thread José Antonio Pérez Testa
By the way, you coud read the following article, before posting to the list ( just a suggestion :) ) http://www.onjava.com/lpt/a/2746 Shapira, Yoav wrote: Hi, I have this XML: a b ... /b b ... /b b ... /b /a Class A has a public no-args constructor and a method public void addB(B b). I have

Re: [Digester] Question on CallMethodRule

2003-11-19 Thread José Antonio Pérez Testa
Commons Users List Subject: Re: [Digester] Question on CallMethodRule Sorry, digester.addSetNext(a/b, addB); Explanation: calls objectA.addB(objectB) , how? - calls the method indicated (addB) in the stack's top object Shapira, Yoav wrote: Hi again, I've read the article -- excellent reference

RE: [Digester] Question on CallMethodRule

2003-11-19 Thread Shapira, Yoav
Subject: Re: [Digester] Question on CallMethodRule Is C a public class ? Digester needs access public to all the classes it uses. Shapira, Yoav wrote: Howdy, That works perfectly!! Thanks so much ;) I have hopefully one final question. XML: b attribute1=something attribute2=something

RE: [Digester] Question on CallMethodRule

2003-11-19 Thread Simon Kitching
On Thu, 2003-11-20 at 07:43, Shapira, Yoav wrote: Howdy, That works perfectly!! Thanks so much ;) I have hopefully one final question. XML: b attribute1=something attribute2=something attribtue3=something / Class B extends C. Class B has public methods setAttribute1 and

Re: Digester question (Hashtables...) and CallMethodRule - parameter types

2003-09-09 Thread Geronimo Ma. Hernandez
thank you Robert for the hint. Sorry, I failed to read the original mail(s), which I did just in the moment. My problem is solved. My boss wrote a new CallParamRule, where I can specify the type of the parameter. He made his changes available on bugzilla. Robert Burrell wrote: i agree that

Re: Digester question (Hashtables...)

2003-09-08 Thread robert burrell donkin
On Thursday, September 4, 2003, at 12:22 PM, Simon Kitching wrote: snip In fact, the hardest thing is probably to find a tasteful way to pass the extra parameter to the CallMethodRule class (relative index on stack of target object), given that its constructor is already heavily overloaded. If

Re: [Digester] question about parent-parameter-access

2003-09-06 Thread Geronimo Ma. Hernandez
Thanks for your note, Simon - and sorry for not responding earlier. I was off home - and as I work this out in my spare-time ... Simon Kitching wrote: You are trying to avoid creating an object corresponding to the addAttributes xml element, yet process subelements associated with that

Re: Digester question (Hashtables...)

2003-09-04 Thread Simon Kitching
On Thu, 2003-09-04 at 21:23, petra staub wrote: hi, i have following little problem: How can I get following XML structure into some java entities? my example.xml look about this: list name=list1 element name=name1value1/element element name=name2value2/element element

Re: [Digester] question about parent-parameter-access

2003-09-02 Thread Simon Kitching
Hi, I'd like to offer some suggestions, but unfortunately I just don't understand your question. Perhaps if you could include the actual code you have so far, that would help clarify what you are trying to achieve. A DTD/schema or simple description of the input xml would also be useful. And is

Re: [Digester] question about parent-parameter-access

2003-09-02 Thread Geronimo Ma. Hernandez
Thank you, Simon, for your response and sorry for being not good enuf explaining my problem. I'm pretty new to digester and XML. I just have an idea of a model and a way I would like to work with it. So I decided to work on a tool to handle the model. And as I'm not that visionary, I toggle

Re: [Digester] question about parent-parameter-access

2003-09-02 Thread Simon Kitching
Hi Gero, It's still not clear to me what your data model is. I guess what I'm really looking for to understand your problem is a UML diagram of the classes you are mapping to. This would tell me whether you are storing attributes as objects in a list, or in a hashmap, and whether there are

Re: [Digester] question about parent-parameter-access

2003-09-02 Thread Geronimo Ma. Hernandez
Thanks for your reply, Simon! Simon wrote: It's still not clear to me what your data model is. Well, my data model started as a 1:1 view of a database, where a table is an entity and a column of a table is an attribute... Now I advanced a bit in abstaction and you could think of an entity is

Re: [Digester] question about parent-parameter-access

2003-09-01 Thread Geronimo Ma. Hernandez
Sorry, I forgot to mention, that I would like to add the dbid-value as parameter for the unique-index-method. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]