I have an Android app, where I use the POST method to get the answer. Here's my code:
................................... ....... HTPRPS section http rpspoice = httpclient.execute (httppost); HttpEntity resEntity = httpResponse.getEntity (); This works fine and I get a response in XML format but I have to parse that XML file and get node value. I tried to do this:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance (); DocumentBuilder db = dbf.newDocumentBuilder (); Document Doctor = DB Parse (new input source ()); Doc.getDocumentElement () Normal () .; But I do not know what should be given to new input source () because I do not want to use a XML type HTTPResponse URL. Thank you!
Thanks everyone for the answer. I have just found a way to overcome my problem.
Comments
Post a Comment