Topic: 谁能讲讲dom4j和Xerces?

  Print this page

1.谁能讲讲dom4j和Xerces? Copy to clipboard
Posted by: CALM
Posted on: 2004-09-21 11:08

dom4j和Xerces是同类的东东么?如果是的话,我应该选择哪一个来学习和使用呢?

2.Re:谁能讲讲dom4j和Xerces? [Re: CALM] Copy to clipboard
Posted by: elysium922
Posted on: 2004-10-03 01:24

不能简单地说同类或不同类。两者都是基于Java, 用来处理xml的类库,但是处理方式不同。dom4j是以类似dom的方式通过在内存中建立文档树来处理xml;而xerces是基于SAX,将xml以流的方式顺序读入,通过触发事件来进行处理。SAX方法的优点在于速度快,消耗内存少,但是对于复杂的操作编码比较困难;相对来说基于dom的方式就要简单易用一些。另外,我个人认为jdom要比dom4j更出色,有兴趣的话可以看一下。

3.Re:谁能讲讲dom4j和Xerces? [Re: elysium922] Copy to clipboard
Posted by: syvin
Posted on: 2004-10-07 18:12

我头说dom4j比jdom性能要高,你认为如何?

4.Re:谁能讲讲dom4j和Xerces? [Re: CALM] Copy to clipboard
Posted by: hello105
Posted on: 2004-11-08 16:52

好像很多人都认为dom4j优越

5.Re:谁能讲讲dom4j和Xerces? [Re: CALM] Copy to clipboard
Posted by: zcjl
Posted on: 2004-11-23 19:58

看ibm dw上的一篇性能评测文章,好像dom4j要比jdom性能好

6.Re:谁能讲讲dom4j和Xerces? [Re: CALM] Copy to clipboard
Posted by: deng
Posted on: 2005-02-05 10:40

elysium922 said that Xerces is based on SAX, really?? Can anyone confirm this?

7.Re:谁能讲讲dom4j和Xerces? [Re: CALM] Copy to clipboard
Posted by: kingomanner
Posted on: 2005-04-14 10:59

听说只是听说,自己用下肯定就能感觉出来优劣


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923