Need HTML output not XML and remove header

  1. HTML output instead of XML output. The encoding of the page affects the process I have running it through the Simple DOM Parser, which produces the special characters. I use the html=1 flag. The source has the less than greater than characters converted to their ASCII notations like < and I dont think the DOM parser likes that so I tried converting them.

This returns a page that starts out with an XML header when you view the source, and an HTML header when you view it in Firebug or Google Chrome Code Viewer.

  1. I need to get rid of the header that says “this is auto generated blah blah” and leave only the title and text of the article.

Please let me know how I can accomplish these 2 things.


Hi Rick,

  1. Full-Text RSS produces RSS output, so you will have to parse this appropriately. It’s valid XML so either use an XML parser or something like SimplePie. You should then be able to access the HTML in the description field and work with that however you like. The HTML flag passed in the querystring does not mean the output will be pure HTML. See for an explanation.

  2. To change the message, open and edit css/feed.xsl

Hope that helps.

Found answer to encoding issue.

// convert string from utf-8 to iso8859-1
$horoscope = iconv( "UTF-8", "ISO-8859-1//TRANSLIT", $horoscope );

And stripped the feed header stuff. Thanks for that.