You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Olivier Billard <ob...@rennes.jouve.fr> on 2003/10/15 11:18:40 UTC

Why not JDOM, why DOM ?

Hi all?

I hope my question(s) will not set this list on fire, I know there's some "pro-" and 
"against-" it outside...

But I would like to know if the use of JDOM in Cocoon is prohibited, or if it could well 
be used.
I think performances, of course.

Thanks in advance !

-- 
Olivier BILLARD



Re: Why not JDOM, why DOM ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Thanks Jeff, it is in fact very interesting.

--
Olivier

On 17/10/2003 00:09, Jeff Ramsdale wrote:
> Here's some info you might find useful concerning XML parsing performance:
> 
> http://www.sosnoski.com/opensrc/xmlbench/index.html
> 
> Note it's a little out of date, but probably still somewhat relevant.
> 
> Jeff



RE: Why not JDOM, why DOM ?

Posted by Jeff Ramsdale <je...@earthlink.net>.
Here's some info you might find useful concerning XML parsing performance:

http://www.sosnoski.com/opensrc/xmlbench/index.html

Note it's a little out of date, but probably still somewhat relevant.

Jeff

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Olivier Billard
> Sent: Wednesday, October 15, 2003 8:57 AM
> To: dev@cocoon.apache.org
> Subject: Re: Why not JDOM, why DOM ?
> 
> 
> Thanks for your answer Carsten, but I think I didn't explain well 
> my issue...
> 
> For some components dealing with XML file (for configuration for 
> exemple, or persistence) 
> or XML documents (DOM or JDOM objects speaking), Cocoon offers 
> some convenient tools to 
> use for the W3C DOM model : for exemple, the XPathProcessor 
> component takes 
> org.w3c.dom.Node objects to parse, and in general excalibur, for 
> evident standards issues, 
> deals with W3C DOM model objects.
> 
> My question is :
> If, for dev time performance, readability of the code ;), I would 
> like to use JDOM, is 
> there some warnings about using this lib ? :
>   - performance of this lib compared the W3C Model
>   - cost of bridging the format to use the Excalibur components 
> (baaaaad....)
>   - performance of other tools to do the same job (jaxen ?)
> 
> I hope I'm clear :)
> 
> --
> Olivier

<snip>


Re: Why not JDOM, why DOM ?

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Thanks for your answer Carsten, but I think I didn't explain well my issue...

For some components dealing with XML file (for configuration for exemple, or persistence) 
or XML documents (DOM or JDOM objects speaking), Cocoon offers some convenient tools to 
use for the W3C DOM model : for exemple, the XPathProcessor component takes 
org.w3c.dom.Node objects to parse, and in general excalibur, for evident standards issues, 
deals with W3C DOM model objects.

My question is :
If, for dev time performance, readability of the code ;), I would like to use JDOM, is 
there some warnings about using this lib ? :
  - performance of this lib compared the W3C Model
  - cost of bridging the format to use the Excalibur components (baaaaad....)
  - performance of other tools to do the same job (jaxen ?)

I hope I'm clear :)

--
Olivier



On 15/10/2003 14:49, Carsten Ziegeler wrote:

> Nothing is prohibited in Cocoon, you can of course use whatever you want.
> 
> Now, Cocoon is SAX based, not DOM. For your own code, you can either
> use SAX as well, or DOM, or JDOM, dom4j etc.
> 
> Carsten
> 
> 
>>-----Original Message-----
>>From: news [mailto:news@sea.gmane.org]On Behalf Of Olivier Billard
>>Sent: Wednesday, October 15, 2003 11:19 AM
>>To: dev@cocoon.apache.org
>>Subject: Why not JDOM, why DOM ?
>>
>>
>>Hi all?
>>
>>I hope my question(s) will not set this list on fire, I know 
>>there's some "pro-" and 
>>"against-" it outside...
>>
>>But I would like to know if the use of JDOM in Cocoon is 
>>prohibited, or if it could well 
>>be used.
>>I think performances, of course.
>>
>>Thanks in advance !
>>
>>-- 
>>Olivier BILLARD



RE: Why not JDOM, why DOM ?

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Nothing is prohibited in Cocoon, you can of course use whatever you want.

Now, Cocoon is SAX based, not DOM. For your own code, you can either
use SAX as well, or DOM, or JDOM, dom4j etc.

Carsten

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Olivier Billard
> Sent: Wednesday, October 15, 2003 11:19 AM
> To: dev@cocoon.apache.org
> Subject: Why not JDOM, why DOM ?
> 
> 
> Hi all?
> 
> I hope my question(s) will not set this list on fire, I know 
> there's some "pro-" and 
> "against-" it outside...
> 
> But I would like to know if the use of JDOM in Cocoon is 
> prohibited, or if it could well 
> be used.
> I think performances, of course.
> 
> Thanks in advance !
> 
> -- 
> Olivier BILLARD
> 
>