且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用于简单 xml 节点字符串的 Android XML 解析器

更新时间:2022-06-09 04:39:52

我会使用 DOM 解析器.它的效率不如 SAX,但如果它是一个不太大的简单 XML 文件,它是最简单的起床和移动方式.

I'd use the DOM Parser. It isn't as efficient as SAX, but if it's a simple XML file that's not too large, it's the easiest way to get up and moving.

关于如何使用它的很棒的教程:http://tutorials.jenkov.com/java-xml/dom.html

Great tutorial on how to use it here: http://tutorials.jenkov.com/java-xml/dom.html