RE: Digester: How to make a rule that maps an XML attribute to a Java Beans property with a different name?

2002-07-09 Thread Simon Kitching
Hi Robert/Edgar. I sent in a patch a while ago which I think would solve your problem. [It was a while ago, so my memory might be misleading me]. There was no response; I meant to follow up but have been kind of busy later. See

Re: XML requirements for Digester ?

2002-10-13 Thread Simon Kitching
Hi Stephen, One thing you don't mention below is what version of java you are running. Sun java 1.4.x bundles a version of xerces in its standard libraries. Because the standard libraries take precedence over anything in your CLASSPATH, you end up with the old version of xerces. If you are

Re: XML requirements for Digester ?

2002-10-13 Thread Simon Kitching
On Mon, 2002-10-14 at 15:41, Simon Kitching wrote: Hi Stephen, One thing you don't mention below is what version of java you are running. Sun java 1.4.x bundles a version of xerces in its standard libraries. Because the standard libraries take precedence over anything in your CLASSPATH

RE: Digester Doc

2002-10-16 Thread Simon Kitching
Hi Stephen, I think the problem is in the following lines: ServletBean s = new ServletBean(); InputStream inputstream = s.class.getResourceAsStream(web.xml); digester.parse(inputstream); inputstream.close(); What I suspect happens is that you create a ServletBean, but never do anything with

RE: [Digester] JavaBeans with a method returning int value....

2002-11-07 Thread Simon Kitching
public void setPower(String power){ try{ this.power = Integer.parseInt(power); }catch(Exception e){} } Am I violating the JavaBeans specification ??? Yes. The return type of a getter and the parameter type of a setter must match for the pair to be deemed to

RE: Digester selecting wrong property setter method

2002-12-11 Thread Simon Kitching
, Hope this helps, Simon -- Simon Kitching [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Digester Examples

2003-01-22 Thread Simon Kitching
Hi Jay, Just to expand a bit on Scott's reply. Your question is a fairly common one. I'm not aware of any documentation that shows how to do this, and there probably should be some. Maybe when you get this working you could contribute some docs and an example? Regarding *how* to do it, (a)

Re: Vague Digester Question

2003-01-27 Thread Simon Kitching
Hi Howard, You state that the paths are now unpredictable, but it doesn't seem so to me from your example. You just have an extra couple of patterns /root/page (as before) /root/test (new pattern) /root/test/page (new pattern) If this is the case, Digester should still work fine. The solution

RE: [Digester] How to specify a call-param-rule parameter fromtop-of-stack

2003-01-27 Thread Simon Kitching
Hi Naresh, Isn't the SetTopRule what you want? class Product { . public void addToParent(HashMap parent) { parent.put(this.partNumber, this); } } digester.addSetTop(/products/product, addToParent, java.util.HashMap); I presume the same functionality is available via the xml

Re: [Net] plans for ssh

2003-02-23 Thread Simon Kitching
In message [EMAIL PROTECTED], Michael Wechner writes: are there any plans to support ssh within the commons-net package? Not that I know of at the moment. Still, if there is demand for an ssh client protocol implementation in Java distributed under the ASL, There is... There is from

[Net] : benefits of commons Net SMTP implementation vs javax.mail?

2003-03-10 Thread Simon Kitching
Hi, The commons Net project includes the SMTPClient class. There is a standard java api javax.mail which defines methods for sending mail from java code. There is also a free-as-in-beer implementation of this API from Sun which appears to work fine. Can anyone suggest any benefits of using the

Re: [Net] : benefits of commons Net SMTP implementation vsjavax.mail?

2003-03-10 Thread Simon Kitching
On Tue, 2003-03-11 at 14:01, Daniel F. Savarese wrote: [snip] Thanks very much for your clear (and quick!) reply. Perhaps my question/your response would be good for a Net FAQ entry? I agree all that JAF stuff in javax.mail is over the top :-) Regards, Simon

Re: [Net] plans for ssh

2003-03-10 Thread Simon Kitching
On Tue, 2003-03-11 at 14:20, Daniel F. Savarese wrote: Any volunteers for implementing ssh? I might be in; I currently have customers asking for this functionality. I will need to check with the fellow who pays my monthly wage, though :-) Should be able to confirm/deny in about 1 week...

Re: [Digester] Re: Unknown nodes in digester?

2003-03-11 Thread Simon Kitching
On Wed, 2003-03-12 at 12:18, Schnitzer, Jason D (US SSA) wrote: ROOT USERDEFINED UNKNOWN1/UNKNOWN1 /USERDEFINED /ROOT I would like a way to store the unknown1/unknown1 in a string inside of my class... So if I did How about using NodeCreateRule, which deals with DOM nodes?

Re: [digester] setting a default value for a callMethod

2003-03-17 Thread Simon Kitching
On Tue, 2003-03-18 at 08:54, Erik Price wrote: Hmm... I'm wondering if there's a way to tell the digester that I don't want to call that method if the element at the matching pattern is empty? Or is this getting too detailed, in which case I'd have to look into JDOM or something. I am not

RE: [Digester 1.4.1] set-next-rule / question

2003-03-24 Thread Simon Kitching
Hi Martin, You should be able to get the effect you want by moving the set-next-rule to *before* the call-method-rule. A rule can perform operations when: (a) the start of a tag is encountered [begin method on Rule], or (b) when the end of a tag is encountered [end method on Rule]. The begin()

Re: [digester] parsing XML attributes but not as bean props

2003-03-24 Thread Simon Kitching
On Tue, 2003-03-25 at 04:36, Erik Price wrote: uda type=LIST nameFoundation/PDM Requirement/name valueYes/value /uda Now the uda element has an attribute type with a value of LIST, but rather than pass the string LIST to a JavaBean set method,

Re: [Digester] - Read only methods

2003-05-29 Thread Simon Kitching
On Thu, 2003-05-29 at 07:27, Sloan Seaman wrote: I have a public void setActionMappingClass(String) that Digester does not call because the get is public Class getActionMappingClass() instead of a public String getActionMappingClass() Just seems odd that Digester would be so

Re: [Digester] - Read only methods

2003-05-30 Thread Simon Kitching
Hi Sloan, From a quick look at the digester code, I see that SetPropertiesRule uses BeanUtils.populate(targetObject, valuesMap). Following this down, I see that eventually java.beans.Introspector is called to get info about the target class. For my own interest, I looked into the JavaBeans spec,

Re: Strange behaviour with xmlrules

2003-06-18 Thread Simon Kitching
Hi Lutz, If I understand your mail, you have got a working solution, but are just wondering why you need to put the setNext rule *before* the setContent in order to get the setContent() method called before the addBaz() method. This is actually a side-effect of the core digester design. It is

Re: JAVA_HOME variable problem

2003-06-23 Thread Simon Kitching
On Tue, 2003-06-24 at 15:39, Joseph S Chung wrote: With echo $JAVA_HOME, I get /usr/java/j2sdk1.4.1_03. Sorry to ask, but have you done this? export JAVA_HOME Without this, the value is visible in your current shell but not in applications started from your current shell.

Re: looking for multipart-mime-handling library

2003-06-26 Thread Simon Kitching
On Fri, 2003-06-27 at 16:02, Martin Cooper wrote: On Wed, 26 Jun 2003, Simon Kitching wrote: Hi All, I'm looking for code which can handle multipart mime messages, both building them and decoding them. [snip] There's some multipart parsing code buried in FileUpload, and probably bits

Re: url hammer - load testing

2003-06-30 Thread Simon Kitching
Hi Nick, Have you looked at JMeter (jakarta.apache.org/jmeter)? If so, what do you want that JMeter can't do? Regards, Simon On Mon, 2003-06-30 at 18:15, Nick Faiz wrote: Hi, I'm looking for some code that will function like ATG's URL Hammer. It's fairly generic and allows automatic

Re: Jakarta Commons:Digester - Getting IllegalAccessException

2003-06-30 Thread Simon Kitching
Hi, On Tue, 2003-07-01 at 02:10, Radhika Menon wrote: I am using Digester for parsing xml files in my application.I encounter a IllegalAccessException when it tries to invoke a public method on a default access class. From memory, I think this happens when the method being called throws an

Re: [Commons-Net] : Latest Version ?

2003-07-03 Thread Simon Kitching
On Thu, 2003-07-03 at 16:52, Jeffrey D. Brekke wrote: I put In CVS on the 1.0.1 release to indicate that the next release, v1.0.1, is still cooking and hasn't yet been released. You can download the nightly builds here: http://jakarta.apache.org/commons/net/download.html if you don't feel

Re: [Digester] element names

2003-07-08 Thread Simon Kitching
On Wed, 2003-07-09 at 04:54, Lister, Tom (ANTS) wrote: Hi I'm need to parse an XML document and cross reference selected elements with a mapping database to resolve different naming conventions between systems. We are using XML via MQ for real time integration. My problem is that when I get

gcj-compiled versions of apache modules available

2003-08-06 Thread Simon Kitching
Did you all know that most of the Jakarta Commons projects are now available as native x86 binary libraries, compiled via gnu gcj? http://sources.redhat.com/rhug/ Just thought people might be interested - To unsubscribe,

Re: [Digester] XML driven schema validation?

2003-08-07 Thread Simon Kitching
On Fri, 2003-08-08 at 04:04, Steve Byrne wrote: Simon Kitching [EMAIL PROTECTED] writes: Ki ora, Simon ;) :-) What are you seeing as your behaviour? A hang, or just invalid documents being processed? Hmm.. I wonder what default ErrorHandler the Digester sets up for its parser... One

Re: [Digester] XML driven schema validation?

2003-08-14 Thread Simon Kitching
Hi, Sorry to ask the obvious, but have you called digester.setValidating(true) immediately after creating the digester instance? On Thu, 2003-08-07 at 18:53, Steve Byrne wrote: I'm trying to get digester to do XML Schema validation based off the schema referenced in the input XML file. I

Re: [Digester] Can I set digester log4j logging mechanism??

2003-09-01 Thread Simon Kitching
On Sat, 2003-08-30 at 08:29, Vivian Fonger wrote: Hi everyone, Is there anyway that I can set digester to use log4j logging mechanism??? Vivian Fonger Digester uses the apache commons-logging wrapper. If the log4j jar file is in the classpath, and either a log4j.xml or

Re: AW: Re: Réf. : AW: [digester] interfaceand setter

2003-09-01 Thread Simon Kitching
Bonjour, Nicolas. The CallMethodRule always operates on the top object on the object-stack. If you have the rules: * digester.addFactoryCreate(acces/reader, ) * digester.addCallMethod(acces/reader, ...) then the top object on the stack will be the object your factory method has just

Re: [digester] NullPointerException :Digester.addObjectCreate

2003-09-01 Thread Simon Kitching
Hi Jai, Please send the complete output generated when the exception occurs, ie the full stack-trace. Without this, it is hard to know what the problem might be. Regards, Simon On Sat, 2003-08-30 at 07:15, Jai PP wrote: I am getting null pointer exception at addObjectCreate. When there are

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 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 (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] validating against system dtd?

2003-09-18 Thread Simon Kitching
Hi Matthijs, For complex XML processing, I suggest that you take advantage of the fact that Digester is an org.xml.sax.ContentHandler. Rather than having the digester instance create and configure the parser, do it yourself with the digester object just being the target of the SAX events

Re: [digester] validating against system dtd?

2003-09-18 Thread Simon Kitching
On Fri, 2003-09-19 at 13:14, Craig R. McClanahan wrote: Is there a way to validate each namespace separately. Because for each application we use different xml with similar elements, this would be very useful. Maybe this is a question for another (more xml specific) mailing list, at

Re: [digester] Namespace aware wildcard mathing

2003-09-23 Thread Simon Kitching
Hmm.. looks to me like it should work. If you post a runnable example, I would be willing to have a look. You could also turn up digester logging, and see if you can spot the problem yourself. Placing the following two files in the classpath should do the trick: filename:

Re: [digester] Multiple Digester Instances

2003-10-14 Thread Simon Kitching
Hi Robert, The xmlrules code currently does this sort of thing, so you may wish to look there for inspiration. It would also help if you included the stack trace for your null pointer problems. One thing I notice in your code snippet below: where does the rules object you are passing to your

Re: [digester] Multiple Digester Instances

2003-10-14 Thread Simon Kitching
) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1567) Thanks for your support. -Robert Grey From: Simon Kitching [EMAIL PROTECTED] Reply-To: Jakarta Commons Users List [EMAIL PROTECTED] To: Jakarta Commons Users List [EMAIL

Re: [digester] RFE - Digester.startElement could use a callback

2003-10-16 Thread Simon Kitching
Hi Steve, I had a thought yesterday: if you want to trap cases where match returns no elements, then you can write a custom Rules class which delegates to RulesBase (or whichever), but has a custom match() rule which checks for empty lists being returned from the real Rules object. Hope this

Re: [digester] how to make use of xml:lang?

2003-10-20 Thread Simon Kitching
Hi Ricky, It looks to me like what you need is a Rules class which can match elements according to the value of specific attributes. None of the existing Rules classes do this, but it seems reasonable to me. The pattern syntax could include xpath-like conditions, eg obj/attr[xml:lang=en] and

Re: [digester] how to make use of xml:lang?

2003-10-20 Thread Simon Kitching
On Tue, 2003-10-21 at 22:57, Simon Kitching wrote: Hi Ricky, Doh! I wasn't thinking so clearly..the suggestion below is complete rubbish :-) Implementing such a Rules class would be non-trivial, though. As a simpler solution along the same lines, how about writing a LangRules class which

Re: [digester] how to make use of xml:lang?

2003-10-20 Thread Simon Kitching
On Tue, 2003-10-21 at 10:57, Craig R. McClanahan wrote: But you could certainly supply your own Rule (no trailing s) implementation whose begin() method checked the Attributes that are passed to see which (if any) xml:lang attribute was set. Craig Hmm .. so digester.addRule (

RE: [digester] How to call a constructor with my own values (rather than theXML attributes or elements)

2003-10-21 Thread Simon Kitching
many questions. i am rookie in Digester thanks, Pankaj -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 10:36 PM To: Jakarta Commons Developers List Subject: Re: How to call a constructor with my own values (rather than theXML

Re: [Digester]How to access created objects

2003-11-04 Thread Simon Kitching
Hi Frank, You may wish to check out the current digester source code from the cvs repository, or use CVSWeb to browse it. You will find code in src/examples/api which may be useful to you. These examples were added since the last release, so you'll need to access them from the cvs repository.

Re: Digester - XML-file set-root-rule

2003-11-05 Thread Simon Kitching
Hi Marc, I see you've not got any replies to your question. That's unfortunate; there just don't seem to be any xmlrules users or developers hanging out on this list at the moment. If you're still having problems with this, let me know and I will have a look into it for you. Of course any info

Re: Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Simon Kitching
On Fri, 2003-11-07 at 04:54, Philip Mark Donaghy wrote: How can I get the version number that is distributed with Struts 1.1. Hi Phil, I'm not aware of any way you can tell what release a given commons-digester.jar file is. So I guess you'll have to consult the documentation for your struts

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 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: NodeCreateRule Question

2003-11-21 Thread Simon Kitching
On Sat, 2003-11-22 at 06:26, Marwan Aziz wrote: I also have the following rules defined: digester.addFactoryCreate(a/b, ); digester.addSetProperties(a/b); digester.addSetNExt(a/b, ); digester.addObjectCreate(a/b/c, ); digester.addSetProperties(a/b/c);

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] accessing parent data and matching dynamic elements

2003-11-24 Thread Simon Kitching
On Tue, 2003-11-25 at 06:30, __matthewHawthorne wrote: I finally have found the chance to use Digester, and it's pretty impressive. However, there are a few issues that I'm confused about, and would appreciate the help. Here's my XML: table name=pmw record id=1 name=pmw1/

Re: Digester :- Skipping Read Only Property under jdk 1.3.1_09

2003-12-04 Thread Simon Kitching
Hi Narinder, That message is coming out of the BeanUtils library. The message implies that BeanUtils thinks that the java property is a read-only property, and therefore cannot be set by Digester. What's probably happening is that the class you are setting properties on does not correctly

Re: [Digester] addBeanPropertySetter help

2003-12-08 Thread Simon Kitching
Hi Craig, On Tue, 2003-12-09 at 08:57, Craig Tataryn wrote: Sorry, forgot to specify which commons project this was for in the subject. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Jakarta Commons Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: addBeanPropertySetter help

Re: Parsing unlimited xml element nesting with Digester

2003-12-21 Thread Simon Kitching
Hi Gary, The standard rules engine in Digester should support */menu fine (though it will not support foo/*/menu type patterns). The pattern */menu will match any menu tag, regardless of what its parentage is. If this isn't good enough (ie you want to avoid matching menu tags which are children

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 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] code must be in static method?

2003-12-22 Thread Simon Kitching
On Tue, 2003-12-23 at 14:00, Mike Zatko wrote: Howdy, I just started looking into the Digester components and I have come across a peculiarity as follows. I began by using a precanned example of using Digester off of an article on IBM's site I think. Basically, all of the Digester code

Re: Digester doctype declaration

2003-12-28 Thread Simon Kitching
On Mon, 2003-12-29 at 08:10, Paul Libbrecht wrote: On 28-Dec-03, at 19:21 Uhr, Craig R. McClanahan wrote: Quoting Iantosca, Jonathan [EMAIL PROTECTED]: Hello, I'm trying to digest an xml file with the following doctype declaration. !DOCTYPE adaptor SYSTEM woadaptor.dtd I

offtopic: regexp or ORO?

2004-01-06 Thread Simon Kitching
Hi, I need to backport an app which uses some java 1.4 regular expressions to java 1.3. Would I be better off using jakarta regexp or jakarata oro? They both seem to be stable and actively maintained, based on the fact that in both cases their last two releases were around dec 2002 and dec 2003.

Re: Logging is causing HttpClient to fail

2004-01-07 Thread Simon Kitching
Hi Michael, I believe this is commonly caused by classloader problems. Are you running this code in a container of some sort? When SimpleLog and Log are loaded by different classloaders, the instance-of operation can report false. Regards, Simon On Thu, 2004-01-08 at 15:40, Michael

Re: offtopic: regexp or ORO?

2004-01-11 Thread Simon Kitching
On Fri, 2004-01-09 at 17:50, Daniel F. Savarese wrote: To answer the original question. If you need Perl (including zero-width negative lookahead assertions), AWK, or glob expressions, use ORO. If you need POSIX-like expressions, use Regexp. If you don't care, then establish some other

Re: [Digester] Anyone done RSS 1.0 and RSS 2.0?

2004-01-18 Thread Simon Kitching
On Sat, 2004-01-17 at 23:58, robert burrell donkin wrote: the RSS 0.91 is really just an example but many people find it a very useful one. creating digestions for RSS 1.0 and/or RSS 2.0 isn't really an itch i have but i suspect that if you were to create one and donate it to the ASF then

Re: [Digester] Anyone done RSS 1.0 and RSS 2.0?

2004-01-18 Thread Simon Kitching
On Mon, 2004-01-19 at 11:14, robert burrell donkin wrote: On 18 Jan 2004, at 22:00, Simon Kitching wrote: On Sat, 2004-01-17 at 23:58, robert burrell donkin wrote: the RSS 0.91 is really just an example but many people find it a very useful one. creating digestions for RSS 1.0 and/or RSS

Re: Digester's pattern matching: bug or misunderstanding?

2004-01-19 Thread Simon Kitching
Hi Olaf, On Tue, 2004-01-20 at 07:17, [EMAIL PROTECTED] wrote: I'm currently writing an XML config file parser using the Digester framework. I've spent quite a while debugging the digester code, since I really did not understand how digester was building the object stack. I now understand it

Re: [digester] parser mismatch

2004-01-22 Thread Simon Kitching
On Fri, 2004-01-23 at 10:50, saeed wrote: Hi, I am geting no match for this query when i use [digester] class to get the map for the entry. Even thogh i see the map is correctly have the query string. I wonder do i need to use any other tag in my xml? Thanks! P.S. I also have

RE: [Digester] Recursive nodes - One to many

2004-01-22 Thread Simon Kitching
On Fri, 2004-01-23 at 16:51, Veerasamy, Thirumalai (Cognizant) wrote: Hi simon, I searched through google, couldn't find the usage of regex digester. Each rule you add to the digester has an associated pattern. Example: digester.addCreateObject( some-kind-of-pattern, MyObject.class); When

RE: [Digester] Recursive nodes - One to many

2004-01-22 Thread Simon Kitching
On Fri, 2004-01-23 at 17:06, Veerasamy, Thirumalai (Cognizant) wrote: Let me know if this is possible. contexts context entry /entry entry entry entry ... /entry /entry /entry /context /contexts Here the entry node could occur go to any depth and

RE: [digester] Set attribute in a static class

2004-01-27 Thread Simon Kitching
On Wed, 2004-01-28 at 10:47, Samuel Cheung wrote: Thanks Robert. But if I have 50 static attributes in my Globals, do I need to create 1 custom Rule per attribute? Hmm.. I think there is a problem with Robert's suggestion (sorry, Robert :-) You are using a separate xml element for each

Re: Digester / BeanUtils - No Such Accessible Method error

2004-02-12 Thread Simon Kitching
On Fri, 2004-02-13 at 09:32, Chad Woolley wrote: Hello, I never got any bites on this, so here it is again with all the info in one place. I'd really like to resolve this, as it is preventing me from using Digester. I guess I should try to write a failing unit test for it and submit

Re: [Digester 1.5] Pattern matching screwed me up

2004-02-28 Thread Simon Kitching
On Sun, 2004-02-29 at 13:11, Martin Kersten wrote: Hi maillist, after I've tried for hours to get my simple XML shema working (due to bad documentation if you ask me). I nearly give up. Ummm .. you aren't likely to win many friends on this list with comments like that. You're asking for

Re: [Digester 1.5] Pattern matching screwed me up

2004-02-29 Thread Simon Kitching
On Sun, 2004-02-29 at 21:16, Martin Kersten wrote: And when you're done, feel free to write a user manual and submit it for inclusion into the project... My english isn't that good. But I can provide some concepts and if someone would like to play an English teacher and correct my bumpy

Re: [Digester 1.5] Pattern matching screwed me up

2004-02-29 Thread Simon Kitching
[Martin Kersten wrote:] How about changing: [snip] The Release Notes document the new features and bug fixes that have been included in this release. The JavaDoc API documents are available online. In particular, you should read the package description for the

Re: [Digester] Validating a XML schema problem

2004-03-01 Thread Simon Kitching
On Tue, 2004-03-02 at 05:32, [EMAIL PROTECTED] wrote: Hi, I load an XML file with Apache digester and I have a strange behaviour with XML schema validation. I have enabled XML schema validation and provided a XML input file with a syntax error in it = The syntax error is well detected by

RE: [Digester] Parsing XML to a hashtable

2004-03-02 Thread Simon Kitching
On Wed, 2004-03-03 at 08:27, Savitsky, Alex wrote: Uhh... now I am confused too... So let me get it straight - your suggestion is to create a helper class XMLContact with getters/setters for each field in Contact, that would capture XML data (instead of Contact doing it) and then push it to

RE: [Digester] Parsing XML to a hashtable

2004-03-02 Thread Simon Kitching
On Wed, 2004-03-03 at 10:08, Savitsky, Alex wrote: Already did five minutes ago, and it works great :) One comment I have, though, is that pretty much any parameter-related rule needs access to digester.peekParams() (PathCallParamRule needs it, too), and that method has package visibility.

Re: [Logging] Turn off HttpClient Wire logging with log4j

2004-03-02 Thread Simon Kitching
On Wed, 2004-03-03 at 20:11, toni price wrote: Your diagnosis is pretty much right: quote but it seems like the wire logger is using a separate logging repository /quote [well, it's just using a category which doesn't happen to follow the conventional category=classname naming convention].

Re: Problems with digester

2004-03-10 Thread Simon Kitching
On Thu, 2004-03-11 at 01:32, Diego wrote: Hi everyone! I'm using commons digester to parse a xml file like this: class property meta attribute=field-descriptiondata1/meta meta attribute=field-descriptiondata2/meta /property /class I'm having problems getting

Re: [Digester] addSetProperties

2004-03-19 Thread Simon Kitching
On Fri, 2004-03-19 at 07:32, Pretterhofer, Guenter (ext.) wrote: property database name=db1 useruser1/user /database database name=db2 useruser2/user /database /property [snip] digester.addObjectCreate(property,

[digester] xmlrules example program needed

2004-04-08 Thread Simon Kitching
Hi, Some tidying up is being done in preparation for a Digester 1.6 release sometime soon. One of the new things in CVS is an examples directory. But there is not yet a simple xmlrules example. Are there any xmlrules users out there interested in writing one and contributing it? There are

Re: Digester and attribute matching?

2004-04-09 Thread Simon Kitching
On Fri, 2004-04-09 at 04:36, Chen, Tim wrote: I saw that in the list archives it was not supported but 1) is it planned to be able to support something like digester.addCallMethod([EMAIL PROTECTED]blah\], foo); ? 2) is there a way around it currently? I see that all the rules have a way to

Re: Digester and attribute matching?

2004-04-12 Thread Simon Kitching
On Mon, 2004-04-12 at 06:09, robert burrell donkin wrote: i've had a longer think about this, and i'm not really sure anymore that there's any XPath engines that this would work for. the other issue is that some XPath expressions really require the whole of the document to work with. (but

[betwixt] is latest code in trunk?

2004-04-12 Thread Simon Kitching
Hi Robert, I know you were working on betwixt on a branch, and in the sandbox for a while too. Is the latest development now happening on the trunk (ie getting cvs HEAD returns latest code)? I'm just interested in seeing how Betwixt works, and want to make sure I'm not looking at obsolete code!

Re: [Digester] - how to Parse Tag attributes and tag content with addObjectCreate and CallMethod...

2004-04-13 Thread Simon Kitching
On Tue, 2004-04-13 at 18:07, Simon Kitching wrote: Root subSection id7/id Item Name=forProperty Type=StringThis is the Content/Item Item Name=forAnotherProperty Type=StringMore Content/Item /subSection /Root Or the SetNestedPropertiesRule

Re: [betwixt] is latest code in trunk?

2004-04-13 Thread Simon Kitching
On Tue, 2004-04-13 at 19:55, robert burrell donkin wrote: hi simon the stuff in the sandbox is very old. the branch contains refactoring work, a rewriting of the way that the reading works (plus some other simplifications). one of the problems with the original betwixt code was that it

Re: [digester] addSetRoot and wildcards

2004-04-13 Thread Simon Kitching
On Wed, 2004-04-14 at 10:40, Thyr wrote: Hello, I want to use digester to solve the following task: test.xml ?xml version='1.0' encoding='utf-8'? root acontent/a b adeeper content/a /b aanother content/a /root The code: Digester d = new Digester();

Re: [Digester] Help please

2004-04-20 Thread Simon Kitching
On Wed, 2004-04-21 at 02:30, Aristos Stavrou wrote: Could you please help me on the following problem? If I have an xml file containing the following element: ... author name= address ... /address /author and I have the following class defined for author

Re: DigesterMarriesLucene

2004-04-22 Thread Simon Kitching
On Thu, 2004-04-22 at 19:43, Samuel Tang wrote: Dear users, I have read the article on the ibm website regarding using lucene (http://www-106.ibm.com/developerworks/library/j-lucene) and followed the provided 'Listing 4' to make the DigesterMarriesLucene.class. I downloaded the Digester

Re: Commons Net : FTP over SSL and yes I have read the archive :)

2004-04-22 Thread Simon Kitching
On Fri, 2004-04-23 at 14:35, Jeffrey D. Brekke wrote: I haven't seen anything about this either, but if you do find out some information, please share it with us via this list or the wiki. Thanks. On Thu, 22 Apr 2004 09:45:18 -0700, Roger Tanuatmadja [EMAIL PROTECTED] said: Hi, I need

Re: [digester] digester adds sub-objects before fully created

2004-05-09 Thread Simon Kitching
Hi, On Mon, 2004-05-10 at 01:05, gary and sarah wrote: I am using digester to read the following file with the following as an example of a rules // x axis digester.addObjectCreate(tensor_frame/x_axis, BasicProjections.class);

Re: [digester] comment on documentation re debug and loggers

2004-05-09 Thread Simon Kitching
Hi, On Mon, 2004-05-10 at 01:22, gary and sarah wrote: I am not sure if this is the right place to send this but here goes Yep, this is the perfect place for this sort of comment. I am using the commons digester component and was having some debugging difficulties [see my last message

Re: Monolog help

2004-05-10 Thread Simon Kitching
On Mon, 2004-05-10 at 19:58, Igor Smirnov wrote: Hi, This is my first time posting here! :) I've working with commons logging for the past week and have implemented a new logger within for my needs. Now, since I am not confortable with the whole commons package yet and the user's guide

Re: [logging] How to get logging to use new Monolog subclass

2004-05-10 Thread Simon Kitching
On Mon, 2004-05-10 at 20:22, Igor Smirnov wrote: Hollowing Simon's suggestion, I am posting the same question under another Subject. And to be more specific: I am working tiwht Monolog logger that implements and extends log4j functionality. I needed a new Log impl. in commons logging to be

Re: [Digester] using Schema Validation

2004-04-28 Thread Simon Kitching
On Thu, 2004-04-29 at 08:45, Thyr wrote: Hello, I have searched the mailing archive and found that Schema Validation using Digester is also a problem to others. But all the answers did not help me getting digester use my schema to validate the xml-file. I would personally avoid using

Re: [digester] how to parse node trees

2004-04-29 Thread Simon Kitching
On Fri, 2004-04-30 at 05:51, José Antonio Pérez Testa wrote: Hi Juergen, apart from corrections donwside, you have to push an object to the Digester stack [...] That is because the SetNext rule pops the element from the stack, so if you start up with nothing you end up with nothing. Hi

Re: [digester] how to use digester with a class hierarchy

2004-05-18 Thread Simon Kitching
On Wed, 2004-05-19 at 14:26, Bill Keese wrote: I'm curious how people use digester to persist class hierachies. Consider the class hiearchy below (that represent graphical objects). class Component { int x,y; } class TextString extends Component { String text; } class Rectangle extends

Re: [digester] how to use digester with a class hierarchy

2004-05-18 Thread Simon Kitching
On Wed, 2004-05-19 at 16:43, Bill Keese wrote: Thanks Simon! All the existing Digester object creation options (ObjectCreateRule, FactoryCreateRule) create the target object when the opening xml tag is found. I see. In that case, I need to create the Text object when the text tag is

Re: [digester] reading embedded HTML (or other mixed text)

2004-05-23 Thread Simon Kitching
On Fri, 2004-05-21 at 12:34, Bill Keese wrote: Is there any way to tell digester to read in the entire content of an element (including text and sub-elements) as a single String? For example, if I persist e-mail to XML, I'd like to use digester to read the e-mail address list, etc., but the

Re: configuring Logging

2004-06-02 Thread Simon Kitching
Hi Ashish, On Thu, 2004-06-03 at 03:47, Ashish Naik wrote: I am not able to understand how to confifigure Log4J for Commons logging API. I have added log4j.jar to my classpath. How do I set log4j.configuration=log4j.properties I am refering to Logging User Guide at

  1   2   3   4   >