对于纯XML使用jsoup或gquery [英] Use jsoup or gquery for plain XML
本文介绍了对于纯XML使用jsoup或gquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在重新创建滚轮之前,将jQuery移植到Java中的 jOOX ,我查了这些图书馆:
但是仔细检查一下,我可以看到:
- jsoup不在标准的
org.w3c .dom
文档结构。他们自行实施。我检查了代码,我怀疑它是像 Xerces 一样有效和调整。对于我的用例,性能很重要 - jsoup与HTML紧密相连。我只想操作XML,没有HTML结构,没有CSS
- gwtquery与GWT相结合。我不知道如何紧密地
有人在使用这些库时仅仅使用服务器端的XML,而不是HTML?
我对
感兴趣- 性能基准(可能比较它使用标准DOM / XPath)
- 兼容性体验(易于导入/导出到标准DOM?)
解决方案
一个月后没有答案,我认为我自己的图书馆最好解决我的问题:
http://www.jooq.org/products/jOOX
I was recently wondering about a good library for XML manipulation in Java: A nice Java XML DOM utility
Before re-inventing the wheel, porting jQuery to Java in jOOX, I checked out these libraries:
But at closer inspection, I can see:
- jsoup does not operate on a standard
org.w3c.dom
document structure. They rolled their own implementation. I checked out the code and I doubt that it is as efficient and tuned as Xerces, for instance. For my use-cases, performance is important - jsoup seems tightly coupled with HTML. I only want to operate on XML, no HTML structure, no CSS
- gwtquery is coupled with GWT. I'm not sure how tightly
Has anyone made any experience with these libraries when using it only for server-side XML, not for HTML?
I'm interested in
- Performance benchmarks (maybe comparing it with standard DOM / XPath)
- Compatibility experience (easy to import/export to standard DOM?)
解决方案
Without an answer after one month, I think that my own library will resolve my problems best:
http://www.jooq.org/products/jOOX
这篇关于对于纯XML使用jsoup或gquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文