| | |
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: 4
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
Views: 562 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem query radio random recursion regex remote script search select seo server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web webdesign xml youtube





