| | |
Combine Two RSS Feeds Using DOM or SimpleXML
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 36
Reputation:
Solved Threads: 0
I am trying to merge two different RSS sources with the same structure into a single list concurrently. I have two foreach statements but would like to combine them. Problem I can not turn a DOM Method into an array... Thanks in Advance.
###### CODE BELOW Using DOM METHOD #####
###### CODE BELOW Using DOM METHOD #####
PHP Syntax (Toggle Plain Text)
<?php foreach($rssResults1 as $value){ echo('<div><a href="' . $value->childNodes->item($thing1)-> nodeValue . '">'); //Url echo($value->childNodes->item($thing2)->nodeValue . '</a></div>'); //Title } foreach($rssResults2 as $value){ echo('<div><a href="' . $value->childNodes->item($thing11)->nodeValue . '">'); //Url echo($value->childNodes->item($thing22)->nodeValue . '</a></div>'); //Title } ?>
•
•
Join Date: Mar 2009
Posts: 3
Reputation:
Solved Threads: 0
Why not use a ready-made script like RSSmesh to merge the feeds? It seems it would be much easier.
![]() |
Similar Threads
- Combine Two RSS Feeds to Appear as One in PHP (PHP)
- Where are the good Java RSS Feeds? (IT Professionals' Lounge)
- RSS Feeds (DaniWeb Community Feedback)
- RSS feeds (Web Browsers)
- Finding updated rss feeds (ASP.NET)
- Waht Is Rss Feeds (PHP)
- RSS Feeds Question (PHP)
Other Threads in the PHP Forum
- Previous Thread: email confirmation
- Next Thread: bbcode help
| Thread Tools | Search this Thread |
advanced apache api array beginner binary broken cakephp check checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms sorting source space sql startup stored syntax system table traffic tutorial unicode update upload url validator variable video web youtube zend





