我在这个链接上有一个 xml 文件
I have a xml file that is on this link
http://nchc.dl.sourceforge.net/project/trialxml/options.xml
我已经成功下载并解析了它,还做了一个动态 UI,但我没有使用任何预定义的函数,如 getFirstChild()、getNextSibling()使我的解析器无法解析具有大约 6-7 级菜单的复杂 XML 文件.
I have downloaded and parsed it successfully and also made a dynamic UI, but I have not used any of the predefined functions like getFirstChild(), getNextSibling() which makes my parser incompatible of parsing complex XML files having around 6-7 levels of menus.
请帮助如何遍历XML文件,并动态创建UI.
Please help how to traverse a XML file,and dynamically create a UI.
尝试使用 DOM parser,解析你的 xml 文档
Try using DOM parser, to parse your xml document
查看此链接了解更多详情:
http://tutorials.jenkov.com/java-xml/dom.html
这篇关于在android中遍历复杂的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
上传进度侦听器未触发(Google 驱动器 API)Upload progress listener not fired (Google drive API)(上传进度侦听器未触发(Google 驱动器 API))
使用 Google Drive SDK 将文件保存在特定文件夹中Save file in specific folder with Google Drive SDK(使用 Google Drive SDK 将文件保存在特定文件夹中)
Google Drive Android API - 无效的 DriveId 和 Null ResourcGoogle Drive Android API - Invalid DriveId and Null ResourceId(Google Drive Android API - 无效的 DriveId 和 Null ResourceId)
谷歌驱动api服务账户查看上传文件到谷歌驱动使Google drive api services account view uploaded files to google drive using java(谷歌驱动api服务账户查看上传文件到谷歌驱动使用java
Google Drive 服务帐号返回 403 usageLimitsGoogle Drive service account returns 403 usageLimits(Google Drive 服务帐号返回 403 usageLimits)
com.google.api.client.json.jackson.JacksonFactory;Google Drcom.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example(com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例