开发者

how to do sax xml parsing in android

开发者 https://www.devze.com 2023-01-29 20:23 出处:网络
I have done one program in android using xml parsing but there is an error开发者_开发技巧 please solve this problem and explain how to use the xml parsing in android:

I have done one program in android using xml parsing but there is an error开发者_开发技巧 please solve this problem and explain how to use the xml parsing in android:

String response = rc.getResponse();
Log.e("Response ", response);

SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
LoginHandler myLoginHandler = new LoginHandler();

xr.parse(retrieveInputStream( response));
xr.parse(new InputSource(rc.openStream()));


See this post and my reply: How to draw a path on a map using kml file?

The second code snippet of the NavigationSaxHandler gives you an example how to use the sax parser.

0

精彩评论

暂无评论...
验证码 换一张
取 消