I'm getting a http post xml-result to my android client but there is a problem with the result. On the PHp server i echo the result and fetch the result in the android client with http response and HttpEntity.
However, in the result is just not the xml, but also html tags. When I print the result it looks like this:
<html>
<body>
</body>
</html> xml comes here....
How do I get rid of the html from the xml result?
EDIT: I didn't need to set the response. I was using another php helper class and in that class I had html code at the top and the bottm.