开发者

issue in reading rss feed using java

开发者 https://www.devze.com 2023-02-15 06:49 出处:网络
Hie I tried to follow vogella and when i use a rss feed it throws following exception: Exception in thread \"main\" java.lang.RuntimeException: javax.xml.stream.XMLStreamException: ParseError at [r

Hie

I tried to follow vogella

and when i use a rss feed it throws following exception:

Exception in thread "main" java.lang.RuntimeException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
Message: White spaces are required between publicId and systemId.
    at vik.tools.changeNotifier.RSSFeedParser.readFeed(RSSFeedParser.java:131)
    at vik.tools.changeNotifier.ReadTest.main(ReadTest.java:6)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
Message: White spaces are required between publicId and systemId.
    at com.sun.org.apache.xerces开发者_运维技巧.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:594)
    at com.sun.xml.internal.stream.XMLEventReaderImpl.nextEvent(XMLEventReaderImpl.java:85)
    at vik.tools.changeNotifier.RSSFeedParser.readFeed(RSSFeedParser.java:61)

Any advise on this please..


because this is not a rss page. it's an html page. a css page would be, for example, http://www.vogella.de/article.rss .


ok looks like issue was with rss url itself. i tested with other frameworks and rss reader codes and i got the same issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号