Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3343106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:54:59+00:00 2026-05-18T00:54:59+00:00

I’m currently working on an application that uses php’s simplexml to interpret rss feeds

  • 0

I’m currently working on an application that uses php’s simplexml to interpret rss feeds from multiple sites. I’ve managed to get this to work with both Atom and RSS feeds, however one feed only works sometimes, which doesn’t really make sense. The feed is located http://www.popsci.com/rss.xml. I’m wondering if the feed itself is malformed, or if there may be something that it is doing that is valid, but unusual. I’ve looked it up and down but can’t find anything wrong. My code interprets many other feeds perfectly, so I’m wondering why this one gives it trouble. And only sometimes. What I mean by that, is that sometimes it will successfully interpret the feed, but other times, the call to simplexml_load_file() fails and returns false.

I do have an error log and this is what has been reported (the same thing every time it fails):

[08-Nov-2010 03:30:17] PHP Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.popsci.com/rss.xml:1: parser error : Start tag expected, ‘<‘ not found in /Applications/MAMP/cmb/cron.php on line 15

[08-Nov-2010 03:30:17] PHP Warning: simplexml_load_file() [function.simplexml-load-file]: � in /Applications/MAMP/cmb/cron.php on line 15

[08-Nov-2010 03:30:17] PHP Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /Applications/MAMP/cmb/cron.php on line 15

But I’m not sure what to make of these errors, and I would appreciate it if someone could point me in the right direction. Thanks! (P.S. line 15 in cron.php is the call to simplexml_load_file())

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:54:59+00:00Added an answer on May 18, 2026 at 12:54 am

    The chances are that there are unescaped characters in the feed, the usual suspects are the & character, the ” character and the < and > characters, all of which have special meaning in XML, as I’m sure you’re aware.

    Unfortunately, the only thing you can actually do about it is complain to the feed publisher about dodgy data in their feed, because XML parsers are explicitly forbidden from attempting to parse malformed XML. They’re supposed to terminate and throw an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.