用Java读取XML的最佳方法 [英] Best way to read XML in Java
本文介绍了用Java读取XML的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从其他一些应用程序中,我正在获取XML文件.
From some of our other application i am getting XML file.
我想逐个读取该XML文件节点,并将节点值存储在数据库中以备将来使用.
I want to read that XML file node by node and store node values in database for further use.
那么,使用Java读取XML文件和检索节点值的最佳方法/API是什么?
So, what is the best way/API to read XML file and retrieve node values using Java?
推荐答案
dom4j 和
dom4j and jdom are pretty easy to use (ignoring the requirement "best" for a moment ;) )
这篇关于用Java读取XML的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文