crazyhitty / Rss-Manager

[Deprecated] A simple, lightweight and easy to use library to parse rss feeds into your app.
MIT License
62 stars 19 forks source link

Error on Line -1 #8

Open rileyclauss opened 6 years ago

rileyclauss commented 6 years ago

I am importing this in my Gradle:

compile ('com.crazyhitty.chdev.ks:rss-manager:0.75'){ exclude module: 'stax' exclude module: 'stax-api' exclude module: 'xpp3' }

and these in my activity:

import com.crazyhitty.chdev.ks.rssmanager.Channel; import com.crazyhitty.chdev.ks.rssmanager.RSS; import com.crazyhitty.chdev.ks.rssmanager.RssReader;

I'm developing an Android app, and two different activities need to be able to parse RSS Feeds. One of these sections works perfectly, parsing this feed just fine, while the other right here, gives me a strange error.

capture

I am implementing these two exactly the same, aside from which feed they are to parse. The first is able to get all the information I need and display and manipulate it perfectly, while the second fails in rssFeedsLoaded(List rssList). If I type anything as much as ''rssList.getChannel();'', it gives me the Attribute 'base' error and fails, returning to the previous activity.

Any more information needed can be provided if needed. The source code for this app is public on my profile, and these are the two activities that use this RSS reader.

Working Activity: https://github.com/rileyclauss/PHSMobile/blob/master/PHSApp/app/src/main/java/com/phsapp/phsapp/athleticsActivity.java

Broken Activity: https://github.com/rileyclauss/PHSMobile/blob/master/PHSApp/app/src/main/java/com/phsapp/phsapp/newsActivity.java

Email me at: riley.clauss@gmail.com

rileyclauss commented 6 years ago

After further testing, I've found that the issue is the source I'm grabbing from. The penn source does not work and I believe it is the fault of the site admins. I'm not sure what's causing the error, but it seems to only occur on this feed. EDIT: So far, the issue seems to be that this has the xml attribute 'base,' but I can't seem to find any other instances of this being used. That would explain the 'xml:base' message, but not the "Line -1" part.