Parsing an XML getting through HttpPOST in android
<p>During the execution of a httpPOST i store the response as a String and the response i am getting is like this:</p>

<pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;string xmlns="http://localhost:4471/"&gt;101~Success&lt;/string&gt;
</code></pre>

<p>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 J2ME as:</p>

<pre><code>            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);
</code></pre>

<p>How can i do it in android?</p>
