I want to read a XML document from a URL:
public void DownloadXmlFile() throws IOException{ //TODO String url = \"http://api.m1858.com/coursebook
This is not an XML Problem its a Strict Mode Problem. You should'nt do time intensiv things in Gui Thread, do it in a own Thread.
However, you can disable it, but you shouldt ;) see here