Tak for hjælpen.
Nu får jeg noget returneret, men det ser sådan her ud:
object(SimpleXMLElement)#1 (2) { ["@attributes"]=> array(1) { ["version"]=> string(3) "2.0" } ["channel"]=> object(SimpleXMLElement)#2 (9) { ["title"]=> string(10) "frooshblog" ["link"]=> string(21) "
http://frooshblog.com" ["description"]=> string(34) "Trading with the developing world!" ["lastBuildDate"]=> string(31) "Thu, 06 Nov 2014 09:58:38 +0000" ["language"]=> string(2) "en" ["generator"]=> string(21) "
http://wordpress.com/" ["cloud"]=> object(SimpleXMLElement)#3 (1) { ["@attributes"]=> array(5) { ["domain"]=> string(14) "frooshblog.com" ["port"]=> string(2) "80" ["path"]=> string(17) "/?rsscloud=notify" ["registerProcedure"]=> string(0) "" ["protocol"]=> string(9) "http-post" } } ["image"]=> object(SimpleXMLElement)#4 (3) { ["url"]=> string(34) "
http://s2.wp.com/i/buttonw-com.png" ["title"]=> string(10) "frooshblog" ["link"]=> string(21) "
http://frooshblog.com" } ["item"]=> object(SimpleXMLElement)#5 (7) { ["title"]=> string(22) "Welcome to our blog:)!" ["link"]=> string(53) "
http://frooshblog.com/2014/11/06/welcome-to-our-blog/" ["comments"]=> string(62) "
http://frooshblog.com/2014/11/06/welcome-to-our-blog/#comments" ["pubDate"]=> string(31) "Thu, 06 Nov 2014 09:58:05 +0000" ["category"]=> object(SimpleXMLElement)#6 (0) { } ["guid"]=> string(26) "
http://frooshblog.com/?p=7" ["description"]=> object(SimpleXMLElement)#7 (0) { } } } }
Der mangler helt fx "description" og "content", som indeholder teksten fra blogindlægget. Disse to plejede at komme ud sådan her:
<description><![CDATA[Hello and a big welcome to our new blog:)! We are very exited to start up our new blog with updates from our fruit farm program! Not only do we visit our partners in the developing world by working on their fruit farms, we also speak loudly about the amazing impact we see the fruit […]<img alt="" border="0" src="
http://pixel.wp.com/b.gif?host=frooshblog.com&blog=75895042&post=7&subd=frooshblog&ref=&feed=1" width="1" height="1" />]]></description>
<content:encoded><![CDATA[<p>Hello and a big welcome to our new blog:)!</p>
<p>We are very exited to start up our new blog with updates from our fruit farm program! Not only do we visit our partners in the developing world by working on their fruit farms, we also speak loudly about the amazing impact we see the fruit farms have on development in poor and rural areas of the worlds poorest countries. We will with this blog tell the stories on behalf of our friends on the fruit farms, as well as giving insights and perspectives on corporate social responsibilty as we see it and value it in froosh. We hope you will find our stories interesting, and input/comments are very welcome always!</p>
<p>As a little appetizer here is a youtube interview with us, regarding our perspectives on private businnes opportunities in Africa – from the leading fair in the food and beverage industry SIAL in Paris a few weeks ago,</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='474' height='297' src='
http://www.youtube.com/embed/_AjwaSo2UZU?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' frameborder='0' allowfullscreen='true'></iframe></span></p><br /> <a rel="nofollow" href="
http://feeds.wordpress.com/1.0/gocomments/frooshblog.wordpress.com/7/"><img alt="" border="0" src="
http://feeds.wordpress.com/1.0/comments/frooshblog.wordpress.com/7/" /></a> <img alt="" border="0" src="
http://pixel.wp.com/b.gif?host=frooshblog.com&blog=75895042&post=7&subd=frooshblog&ref=&feed=1" width="1" height="1" />]]></content:encoded>
Hvordan får jeg description og content med, når jeg bruger cUrl?