You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Lenz, Georg" <ge...@sap.com> on 2001/01/12 07:30:33 UTC

Directions of digester?

Hei 

what are the directions of digester?
Right now I am using digester as nice little XML2Objects 
(parse XML and create a hierarchical object model) tool in a non struts
context. 
For the first simple steps it is nice but the definition of the even
triggering is a little bit 
restricted. 
Is that going to be enhanced in directions of XPath?

Best regards

Georg Lenz




Re: Directions of digester?

Posted by Elod Horvath <el...@itfais.com>.
"Craig R. McClanahan" wrote:
 
> Craig McClanahan
> 
> PS:  For those interested in understanding more about how to use the Digester
> module, I recently enhanced the Digester Developer's Guide in the Javadocs.  You
> can read it inside the Struts documentation application, or online at:
> 
> http://jakarta.apache.org/struts/api/org/apache/struts/digester/packagesummary.html#package_description

something i noticed about these docs when i first originally tried
coding up some digester work was that use of "*/a" type of patter 
wasn't clearly described.  In particular, no mention was made that
it only works as a suffix.  it's not all that clear whether something
like "a/b/*/d" should work at all (i don't believe it does even though
i think it should.  it was a while ago when i tried this).  also, no 
mention is made of the fact that there can only be one wildcard 
specified.  so, something like "*/a/b/*/c" won't work.  once again,
multiple wildcards would be extremely useful.  at a minimum, a 
wildcard located somewhere other than at the beginning of the pattern
_should_ be supported.

e
-- 
_______________________________________________________________________
Elod Horvath ('e')       /      ITFAIS Records (http://www.itfais.com/)

Re: Directions of digester?

Posted by Elod Horvath <el...@itfais.com>.
"Craig R. McClanahan" wrote:
 
> Craig McClanahan
> 
> PS:  For those interested in understanding more about how to use the Digester
> module, I recently enhanced the Digester Developer's Guide in the Javadocs.  You
> can read it inside the Struts documentation application, or online at:
> 
> http://jakarta.apache.org/struts/api/org/apache/struts/digester/packagesummary.html#package_description

something i noticed about these docs when i first originally tried
coding up some digester work was that use of "*/a" type of patter 
wasn't clearly described.  In particular, no mention was made that
it only works as a suffix.  it's not all that clear whether something
like "a/b/*/d" should work at all (i don't believe it does even though
i think it should.  it was a while ago when i tried this).  also, no 
mention is made of the fact that there can only be one wildcard 
specified.  so, something like "*/a/b/*/c" won't work.  once again,
multiple wildcards would be extremely useful.  at a minimum, a 
wildcard located somewhere other than at the beginning of the pattern
_should_ be supported.

e
-- 
_______________________________________________________________________
Elod Horvath ('e')       /      ITFAIS Records (http://www.itfais.com/)

Re: Directions of digester?

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Lenz, Georg" wrote:

> Hei
>
> what are the directions of digester?
> Right now I am using digester as nice little XML2Objects
> (parse XML and create a hierarchical object model) tool in a non struts
> context.
> For the first simple steps it is nice but the definition of the even
> triggering is a little bit
> restricted.
> Is that going to be enhanced in directions of XPath?
>

I had not really thought about using XPath in the Digester module anywhere.  How
would you suggest it might be useful?

>
> Best regards
>
> Georg Lenz

Craig McClanahan

PS:  For those interested in understanding more about how to use the Digester
module, I recently enhanced the Digester Developer's Guide in the Javadocs.  You
can read it inside the Struts documentation application, or online at:

http://jakarta.apache.org/struts/api/org/apache/struts/digester/package-summary.html#package_description