During the execution of a httpPOST i store the response as a String and the response i am getting is like this:
= "1.0" = "utf-8"
I just want to get 101~Success after parsing so that i can get 101 by using split function but am not able to get this element in android.I was getting this in
InputStream in = new ByteArrayInputStream(strResponse.getBytes("UTF-8"));
InputStreamReader is = new InputStreamReader(in);
parser = new XmlParser(is);
doc.parse( parser );
Element root = doc.getRootElement();
Element item = doc.getElement(2);
String parsedResponse = item.getText(0);
How can i do it in android using DOM Or XmlPullParser?