2levelsabove Posted April 29, 2009 Share Posted April 29, 2009 I have a site that gets users to submit XML feeds. Once in a while the occasional user submits a malformed RSS feed with a few characters that will make the process break (I am using simple pie) Is there any way to take the XML feed URL, run the feed through some cleanup process and then processing the so called clean feed ? Any thoughts would be highly appreciated. Link to comment https://forums.phpfreaks.com/topic/156063-anyway-to-clean-up-a-rss-feed-before-displaying/ Share on other sites More sharing options...
mikesta707 Posted April 29, 2009 Share Posted April 29, 2009 You may be able to use a regex function like ereg() or preg_match(). But I know nothing about either of those functions, so i can't give you an example. However I will provide some helpful links! http://us.php.net/manual/en/function.ereg.php http://us.php.net/manual/en/function.preg-match.php Hope that helps! Link to comment https://forums.phpfreaks.com/topic/156063-anyway-to-clean-up-a-rss-feed-before-displaying/#findComment-821580 Share on other sites More sharing options...
Mchl Posted April 29, 2009 Share Posted April 29, 2009 If you can design a software that fixes malformed RSS (or any XML for that matter) feeds, then be sure to put a price tag on it. Tell the users their feed is malformed and they should fix it instead. Link to comment https://forums.phpfreaks.com/topic/156063-anyway-to-clean-up-a-rss-feed-before-displaying/#findComment-821624 Share on other sites More sharing options...
2levelsabove Posted April 29, 2009 Author Share Posted April 29, 2009 Thank you for your feedback! Link to comment https://forums.phpfreaks.com/topic/156063-anyway-to-clean-up-a-rss-feed-before-displaying/#findComment-821906 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.