Jump to content

I get constant error messages when parsing xml from an rss feed


batmanAgen

Recommended Posts

Hi guys,

 

I need help with parsing rss feed from this http://fbtest1.com/cb/rss_test/bug.xml

 

I have coded my own parser and it works in most rss feed sites. but when I try to parse this I get this error:

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 56: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE2 0x80 0x3F 0x3C in /homepages/14/d186083260/htdocs/patricktest/cb/rss_test/xmlparse_class.php on line 39

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <p>Nick�</p></blockquote> in /homepages/14/d186083260/htdocs/patricktest/cb/rss_test/xmlparse_class.php on line 39

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /homepages/14/d186083260/htdocs/patricktest/cb/rss_test/xmlparse_class.php on line 39

 

I also tried to validate the feed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffbtest1.com%2Fcb%2Frss_test%2Fbug.xml

 

Need your thoughts,

 

Thanks in advance

 

 

Link to comment
Share on other sites

In your link to the feed validator, it clearly shows the errors in it.

 

W3C has also detected a problem in it http://validator.w3.org/check?uri=http%3A%2F%2Ffbtest1.com%2Fcb%2Frss_test%2Fbug.xml&charset=%28detect+automatically%29&doctype=Inline&group=0

 

Try fixing all of the problems that these validators have detected. It should work then.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.