Change some feed to one!

hi , im new in php. i want to make a script that it read some feed and write a feed with all of the posts. exactly a normal rss…
feed address are in database .
i write this code but tags was deleted…

while($res = mysql_fetch_array($resualt))
			{			
			$xml = $res['feed'];
			$xmlDoc = new DOMDocument();
			$xmlDoc->load($xml);

			$x=$xmlDoc->getElementsByTagName('channel')->childNodes[0]->nodeValue;

			echo ($x);
		}

iam new in english… thank you every one.

I don’t think I understand the problem. Are you getting an error your code?

Hi rastegar.amir3, welcome to the forums.

I don’t think it’s that tags are being deleted.

$x=$xmlDoc->getElementsByTagName('channel')->childNodes[0]->nodeValue;

gets the text of the channel tag’s first child node (presumably the Title) but nothing else.

You could try something like SimplePie or Magpie, or could write your own using XML Parser