本文介绍了哪个Java DOM Wrapper是最好的或最受欢迎的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我过去曾经使用过jdom,并且简要地看了XOM和 DOM4j 。每个似乎都提供了基本相同的东西,因为它们每个都提供了一个简化的封装(非常钝的)标准的W3C DOM API。



我知道JDOM经历了一些努力,在一个时刻开发了一个JSR和标准化过程,但据我所知,努力从未到过任何地方。所有的项目似乎都在尴尬,在过去几年里几乎没有新的发展。



对于哪个是最好的?还有每个的利弊是什么?

解决方案

我喜欢,因为我喜欢Elliotte Rusty Harold认为的方式。你提到的那些,我相信它是偏离DOM标准API的那个,最重要的,但我认为是一个好处。



我曾经实现了一个DOM可可的图书馆,XOM是我的灵感。



我也和JDOM一起工作,绝对没有任何错误,虽然我更喜欢XOM。 p>

I've used jdom in the past, and have looked briefly at XOM and DOM4j. Each seems to provide essentially the same thing, as they each provide a simplified wrapper over the (very obtuse) standard W3C DOM APIs.

I know that JDOM went through some effort to develop a JSR and standardization process at one point, but as far as I know that effort never went anywhere. All of the project appear to be in stasis with little new development in the past several years.

Is there a consensus as to which is the best? Also what are the pros and cons of each ?

解决方案

I like XOM, because I like the way Elliotte Rusty Harold thinks. Of the ones you mention I belive it's the one that strays away from the DOM standard API:s the most, but I consider that a benefit.

I once implemented a DOM library for Cocoa, and XOM was my inspiration.

I've worked with JDOM as well, and there's absolutely nothing wrong with it, although I do prefer XOM.

这篇关于哪个Java DOM Wrapper是最好的或最受欢迎的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 01:38