Subscribe: Reading url from rss - Stack Overflow
http://stackoverflow.com/feeds/question/9341158
Preview: Reading url from rss - Stack Overflow

Reading url from rss - Stack Overflow



most recent 30 from stackoverflow.com



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

 



Reading url from rss

2012-02-18T12:37:06Z

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



 http://www.someurl.com//modules.php?name=News&file=article&sid=622


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: http://www.someurl.com//modules.php?name=News in the title var.

What can be the problem ?