0

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()));
Yurets
  • 3,999
  • 17
  • 54
  • 74
Ramakrishna
  • 4,066
  • 16
  • 48
  • 72

1 Answers1

0

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.

Community
  • 1
  • 1
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192