title: Parse xml data in android
body: <p>I want to parse the below data in android. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
   Info: POST /Remindz_api/user/loginHTTP/1.1 
   Host: www.narola.co 
   Accept: www.narola.co.beepz.api+xml 
   HTTP 1.1 200 OK 
   Content-Type: www.narola.co.beepz.api+xml; 
   Allow : GET,POST
  
    &lt;user id="43"&gt;
      &lt;firstname&gt;Dfdf&lt;/firstname&gt;
      &lt;lasttname&gt;p2&lt;/lasttname&gt;
      &lt;email&gt;p&lt;/email&gt;
      &lt;telephone&gt;2236&lt;/telephone&gt;
      &lt;created_on&gt;2013-01-04 04:38:05&lt;/created_on&gt;
      &lt;atom:link &lt;a href="http://www.narola.co/remindz/reminders/43"&gt;&lt;/a&gt; /&gt;
    &lt;/user&gt;
  </code></pre>
  
  <p>I had used below code but due to the data is purely xml i cant parse it.</p>
  
  <pre><code>DocumentBuilder newDocumentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
  Document parse = newDocumentBuilder.parse(new ByteArrayInputStream(result.getBytes()));
  Log.d("result",parse.getChildNodes().toString());
  </code></pre>
  
  <p>Thanks In advace.</p>