Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) should fix some problems with RSS Importer (see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=3253)

low01295379ce0b1c2
diff --git a/source/net/yacy/cora/document/RSSReader.java b/source/net/yacy/cora/document/RSSReader.java
index 309467422..3e443001b 100644
--- a/source/net/yacy/cora/document/RSSReader.java
+++ b/source/net/yacy/cora/document/RSSReader.java
@@ -65,7 +65,7 @@ public class RSSReader extends DefaultHandler {
try {
final SAXParser saxParser = factory.newSAXParser();
// do not look at external dtd - see: http://www.ibm.com/developerworks/xml/library/x-tipcfsx/index.html
- ((XMLReader)saxParser).setEntityResolver(new EntityResolver() {
+ saxParser.getXMLReader().setEntityResolver(new EntityResolver() {
@Override
public InputSource resolveEntity(final String arg0, final String arg1)
throws SAXException, IOException {