如何读取Android的XML数据 [英] How to read XML data in android

查看:122
本文介绍了如何读取Android的XML数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图读取我的XML文件在我的机器人,但没有成功。 这是我的XML文件: http://collectionservice.byethost13.com/backup.XML 所有我需要做的是,有在文档中的行标记,并有显示仅在第一个屏幕的列表视图内的所有行标签的ID。 任何机构可以给我一个例子什么的会非常感激。

Hi i have been trying to read my XML file in my android but have been unsuccessful. this is my XML file : http://collectionservice.byethost13.com/backup.XML all i have to do is that there is a row tag in the document and have to show only the IDs in all the row tags inside the Listview of the first screen. Can any body give me an example or something will be very thankful.

我只是想证明这个XML文件:

Hi i just want to show this XML file:

从XML的第一个屏幕列表视图,然后点击特定的ID就转到下一屏幕,并出示身份证,姓名,电话,部门,What_Ever该ID的。

ID on the first screen listview from the XML and then on click on the specific id it goes to the next screen and show ID,Name,Phone,Department,What_Ever of that id.

任何人都可以做给我一个code或什么今天必须给它的客户端,我是新来的Andr​​oid将会非常感激你。

Can anybody do give me a code or something have to give it to the client today and i am new to android will be very thankful to you.

人已经尝试了许多联系,但没有成功 pretty的吧。

Man have tried many links but no successes Pretty please.

推荐答案

我发现简单的XML 是非常容易使用解析XML为对象。

I found that simple-xml is very easy to use to parse xml into objects.

该文档写得好,因此它可能对你有所帮助。

The docs are well written so it could be helpful to you.

这篇关于如何读取Android的XML数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆