maxarab.com
New Member
I want to parse the below data in android. \[code\]<?xml version="1.0" encoding="UTF-8"?> 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 <user id="43"> <firstname>Dfdf</firstname> <lasttname>p2</lasttname> <email>p</email> <telephone>2236</telephone> <created_on>2013-01-04 04:38:05</created_on> <atom:link <a href="http://www.narola.co/remindz/reminders/43"></a> /> </user>\[/code\]I had used below code but due to the data is purely xml i cant parse it.\[code\]DocumentBuilder newDocumentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();Document parse = newDocumentBuilder.parse(new ByteArrayInputStream(result.getBytes()));Log.d("result",parse.getChildNodes().toString());\[/code\]Thanks In advace.