WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
XML error (5 posts)

  1. schoe
    Member
    Posted 1 year ago #

    HungryFEED can't get feed: http://www.taz.de/Schwerpunkt-berwachung/!t10;atom/
    I suppose HungryFEED is right: Todays feed says
    <name>U. Winkelmann & C. Jakob</name>
    with a plain ampersand which probably is not correkt!!!

    Which WP filter could I use ('the_content' and 'content_edit_pre' seem to be to late...) to turn & into &???

    http://wordpress.org/extend/plugins/hungryfeed/

  2. schoe
    Member
    Posted 1 year ago #

    This feed including the "&" might not be quite correct but other feedreaders do accept it!

    The error says:
    "HungryFEED can't get feed. Don't be mad at HungryFEED. SimplePie reported: This XML document is invalid, likely due to invalid characters. XML error: XML_ERR_NAME_REQUIRED at line 59, column 28"

    There you can find the ampersand. So the "&" problem comes from SimplePie which is called by HungryFEED.
    Shouldn't there be a way to put a filter...

  3. Jason
    Member
    Plugin Author

    Posted 1 year ago #

    Yea unfortunately it looks like an issue with SimplePie - HungryFEED can only handle feeds that SimplePie can parse. WordPress doesn't include the most updated version of SimplePie, so upgrading can sometimes fix things.

  4. schoe
    Member
    Posted 1 year ago #

    In debug mode you put the whole feed in a buffer...

    Regarding
    if (!$feed->init()) { ... }

    Isn't there a chance to use the buffer to mask the ampersand and send it back to SimplePie?

  5. Jason
    Member
    Plugin Author

    Posted 1 year ago #

    I've looked before into SimplePie for some kind of pre-processing hook to clean up feeds and such but I haven't found any way so far.

    There is one solution that I just now remembered several people have used for non-standard feeds. That is to use a feed aggregator as a proxy. Yahoo Pipes works well but is a little complicated. You can try feedBurner as well or any other feed aggregator. It works like this:

    source feed <- aggregator <- hungryfeed

    The aggregators tend to be more forgiving for malformed XML and other problems. so it kinda "fixes" the feed before hungryfeed get it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags