Android String contains two values

Cooler

New Member
I receive an XML from HTTP server as a String:\[code\]HttpResponse httpResponse = httpClient.execute (httpPost);return EntityUtils.toString (httpResponse.getEntity ());\[/code\]This String somehow appears to have two values, because when I try to log it's length I get two lines in Logcat:\[code\]Log.d ("XML", xml.length () + "");17:30:22.313 19712 DEBUG XML 16117:30:22.313 19712 DEBUG XML 0\[/code\]And when I try to parse this XML with DOM parser, I get org.xml.sax.SAXParseException: Unexpected end of document.I read about something similar here. I know it's not me who's doing something wrong when I get two Logcat lines with a single line of code. What could be the problem?
 
Back
Top