在 Android 中读取 XML 的最佳方法是使用 简单 XML 框架。如果您想要分步指南,那么您应该看看 关于我写的主题的博客文章。如果您知道简单,那么您将花费十分钟来编写可以解析它的代码。
The best way to read XML in Android is to use the Simple XML Framework. If you want a step by step guide then you should take a look at the blog post on the topic that I wrote. If you knew simple then this would take you all of ten minutes to write the code that can parse it.
发布评论
评论(2)
在 Android 中读取 XML 的最佳方法是使用 简单 XML 框架。如果您想要分步指南,那么您应该看看 关于我写的主题的博客文章。如果您知道简单,那么您将花费十分钟来编写可以解析它的代码。
The best way to read XML in Android is to use the Simple XML Framework. If you want a step by step guide then you should take a look at the blog post on the topic that I wrote. If you knew simple then this would take you all of ten minutes to write the code that can parse it.
网上有很多这样的例子; Google 搜索“parse xml in java”的第一页充满了示例。
http://www.java-samples.com/showtutorial.php?tutorialid=152
http://www.totheriver.com/learn/xml/xmltutorial.html
http://www.developerfusion.com/code/2064/a-simple-way-to-read-an-xml-file-in-java/
There are quite a few examples of this online; the first page of a Google search "parse xml in java" was filled with examples.
http://www.java-samples.com/showtutorial.php?tutorialid=152
http://www.totheriver.com/learn/xml/xmltutorial.html
http://www.developerfusion.com/code/2064/a-simple-way-to-read-an-xml-file-in-java/