简体   繁体   English

在Android应用程序中使用SAX解析器进行Xml解析。

[英]Xml Parsing using SAX parser in Android application.

Can anybody please solve my Issue regarding XML SAX Parsing: 谁能解决我有关XML SAX解析的问题:

I have a small issue that in my Android application when parsing is done, it goes through the whole response and parse the data. 我有一个小问题,就是在Android应用程序中解析完成后,它会遍历整个响应并解析数据。

My issue is that I just want to parse the data from the particular place. 我的问题是,我只想从特定位置解析数据。 So that when I parse the XML Response, parsing should be done from the desired place and then it should not check further even if the "same tag" used to appear elsewhere in the response. 因此,当我解析XML响应时,应从所需的位置进行解析,然后即使“相同标签”曾经出现在响应的其他位置,也不应进一步检查。

Is there any way to do this? 有什么办法吗? I am stranded in this situation badly and have no clue for what to do. 我非常困在这种情况下,不知道该怎么办。

尝试使用xmlpullparser而不是SAX解析器,Android也支持xmlpullparser

尝试重新启动Eclipse或正在使用的框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM