【问题标题】:Android Complex Xml ParsingAndroid 复杂 Xml 解析
【发布时间】:2015-10-21 06:54:26
【问题描述】:

请任何人建议我如何解析这个复杂的 xml 数据。我已经尝试过

很多方法,但我无法获取内部的配置文件和服务器标签

profiles.I 试过这个链接http://www.androidhive.info/2011/11/android-

xml-parsing-tutorial/

提前感谢您的代码和可爱的建议。请帮助我....

<analec>
<emails>
<email regex="*@analec.com" profilId="1" order="1"/>
</emails>
<profiles>
<profile name="ANALEC ClientManager (AWS)" ID="1">
<server name="AWS Host" order="1" endpoint="https://ec2-54-191-187-206.us-    
 west-  2.compute.amazonaws.com/" ssl="true" ignoreSSLErrors="true"/>
<server name="AWS IP" order="2" endpoint="https://54.191.187.206/" 
ssl="true"  ignoreSSLErrors="false"/>
</profile>
</profiles>
</analec>

【问题讨论】:

    标签: android xml parsing


    【解决方案1】:

    最好使用拉解析器。 Android 推荐使用 XMLPullParser 来解析 xml 文件,因为它比 SAX 和 DOM 快。

    点击此链接:http://www.javatpoint.com/android-XMLPullParser-tutorial,

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多