I have successfully implemented SaxParser in my application to parse XML files. My app works well with other online XML files, but not with a specific one. I opened this specific XML file on my browser than went to "page source", copied everything and pasted inside a local XML file in my project, and the parser worked. 

When I try to parse this file from it's source on internet, on Logcat I get error message: 

```
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: syntax error 

```

The only thing comes to my mind is, the source file's url is something like "example.com/showxml". So the url does not end with a .xml extension. 

Can this be the cause of the error?

Thanks in advance!

Notes:  

1. Internet permission is listed in my manifest.  

2. I don't think there is a syntax error in the XML file, since it worked when I copy & paste it to a local file.

UPDATE:

I uploaded the XML file to another website, in order to try if I can reach it from there. And it worked. Seems like my problem is caused by the domain that I am trying to get the original file from.