I\'m using Java and i\'m trying to get XML document from some http link. Code I\'m using is:
URL url = new URL(link); HttpURLConnection connection = (HttpUR
Someone should mark Johannes Weiß's comment as the answer to this question. That is exactly why xml documents can't just be loaded in a DOM Document class.
http://en.wikipedia.org/wiki/Byte_order_mark