Jump to content

rss problem


c_pattle

Recommended Posts

I am trying to save this an an xml document but am getting this error when I try to open the xml file "feed.xml" - "XML Parsing Error: no element found"

 

$xml = '<rss version="2.0">

<channel>

<title> RSS Feed</title>

<link></link>

<description>the best industry-lead opinions</description>

<language>en-us</language>
</channel>

</rss>";

$xml2 = new DOMDocument('1.0'); 
$xml2->Load($xml);
$xml2->save("feed.xml");

Link to comment
https://forums.phpfreaks.com/topic/217298-rss-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.