When I browse both of these URLs using my web browser, I get valid XML. Of course, in line 11 there is no error indicated by your glass.
My conclusion is that choosing URLs (in particular, with space in it) gives a different result when you do this programmatically rather than executing it in a web browser. I expect this because the browser βhelpsβ to correct the URL to encode the space character before sending it. (And I suspect you have inserted this fixed URL into the question ...)
To confirm this diagnosis, you need to capture and view the actual contents of the file that your Android application receives from the server. I assume this is actually an HTML error page. Usually this will not be valid XML and therefore an XML parsing error.
If this turns out to be a problem, you need to correctly encode the search string before embedding it in the url. If you used plain Java, I would suggest using URLEncoder.encode or URLEncoder.encode URL from your components using the URI class. On Android platform, there may be a better way ...
source share