怎么办XML解析中的android? [英] how to do XML parsing in android?

查看:109
本文介绍了怎么办XML解析中的android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid和XML。所以,我想知道什么是XML解析和如何以及在何处,我们可以在Android应用程序开发中使用它。 我也想知道被用于此目的的语法。 谢谢

i am new to android and xml. so, i would like to know what is xml parsing and how and where we can use it in android application development. I would also like to know the syntax to be used for this purpose. thanks

推荐答案

有关介绍了XML,所以通过读取的维基百科条目?基本上它是一个标准化的方式把表单的一些文字资料;它被广泛地用于许多,各种应用,在线或离线

For an introduction to XML, why not start by reading the Wikipedia entry? Basically it is a standardized way to put in form some textual data ; and it is widely used for many, various applications, online or offline.

解析是指处理XML数据的提取,可以在你的程序的code中使用的值。

"Parsing" means processing the XML data to extract values that can be used in your program's code.

在开发的机器人,一些XML文件用于存储应用程序数据(如用户界面布局,Android清单,...)这些文件的解析是在制作的时候自动完成的Andr​​oid开发工具,让你不需要编程。例如,在这部分的Hello World教程,你可以学习如何使用XML布局文件来编写用户界面。

When developing for Android, some XML files are used to store application data (e.g. UI layout, Android manifest,...) The parsing of these files is done automatically at build time by the Android Developer Tools, so you do not need to program it. For example, in this part of the Hello World tutorial, you can learn how to use the XML layout files to compose your User Interface.

如果您确实需要一个XML解析器,为用户在拉胡尔的的建议://计算器.COM /问题/ 3492034 / Android的XML解析>这个问题,这的大页面 presents三种方法来解析XML在Android和显示例如code。

If you do need an XML parser, as user Rahul recommended in this question, this great page presents three ways to parse XML on Android and shows example code.

这篇关于怎么办XML解析中的android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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