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





