Im trying to parse a Xml file from a URL, the xml is actually a RSS feed. However when I call
Document dom = builder.parse(podcastUrl.openConnection().getInputStream());
or
Document dom = builder.parse(new InputSource(podcastUrl.openStream()));
I get this exception thrown :
unterminated entity ref (position:ENTITY_REF &T@7:14 in java.io.InputStreamReader@47b601c0)
podcast is of Type URL.
What am I doing wrong?