Subscribe: Reading url from rss - Stack Overflow
Preview: Reading url from rss - Stack Overflow

Reading url from rss - Stack Overflow

most recent 30 from

Updated: 2018-04-22T08:09:39Z


Reading url from rss


I'm trying to read an url from a rss.

I'm getting in the rssfeed var "&" instead of &. I'm executing this code:

StringReader rssFeedStringReader = new StringReader(rssFeed);
InputSource inputSource = new InputSource(rssFeedStringReader);  
DocumentBuilder builder = factory.newDocumentBuilder();
Document document =  builder.parse(inputSource);
articleNodes = (NodeList)expr.evaluate(document, XPathConstants.NODESET);
Node articleNode = articleNodes.item(i).getFirstChild();
Node articleTitle = articleNode.getFirstChild();
String title = articleTitle.getNodeValue();

But I only get: in the title var.

What can be the problem ?