如何在android中保存xml文件中链接的数据?
我想将某个链接的数据保存在android中的xml文件中。我该怎么做?谁能帮助我,我不知道。
提前致谢。
链接中的数据如下所示:
<elements>
<element>
<def>confirm</def>
<text>Ok</text>
</element>
<element>
<def>email</def>
<text>Email</text>
</element>
<element>
<def>firstname</def>
<text>Prénom</text>
</element>
</element>
I want to save the data from a certain link in a xml file in android. How can I do this? Can anyone help me, I have no idea.
Thanks in advance.
The data from link looks like this :
<elements>
<element>
<def>confirm</def>
<text>Ok</text>
</element>
<element>
<def>email</def>
<text>Email</text>
</element>
<element>
<def>firstname</def>
<text>Prénom</text>
</element>
</element>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不是在问一个具体的问题。你不能指望其他人为你编写代码。抱歉,请不要刻薄。无论如何,为了让您开始,我假设您正在尝试从 http 链接下载文件?您可能想看看 httpClient。这是使用它的一个很好的例子:
You are not asking a specific question. You can not expect other people to write code for you. Sorry, do not try to be mean. Anyways, to get you start, I assume you are trying to download a file from a http link? You might want to look at httpClient. This is a good example of using it: