c_pattle Posted October 30, 2010 Share Posted October 30, 2010 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"); Quote Link to comment https://forums.phpfreaks.com/topic/217298-rss-problem/ Share on other sites More sharing options...
.josh Posted October 30, 2010 Share Posted October 30, 2010 look at how your text is highlighted. You used a single quote to open your string but a double quote to close it. Quote Link to comment https://forums.phpfreaks.com/topic/217298-rss-problem/#findComment-1128396 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.