Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用接收 xml 数据作为响应的服务调用。我收到数据为
<?xml version="1.0"?> <note> <status>4</status> </note>
现在如何从该 xml 数据中获取状态标记中的值“4”。
请帮忙
我建议使用 XPath - 教程可以在这里找到
一切都在官方文档中解释:http: //developer.android.com/training/basics/network-ops/xml.html