Hello All
This is My Code :

$headers = array("Content-type: application/atom+xml");


        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, "http://www.blogger.com/feeds/
8966040103340507032/posts/default/6370446829717599557");
        curl_setopt($ch, CURLOPT_TIMEOUT, 4);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        $result = curl_exec($ch);
        $ERROR_CODE = curl_getinfo($ch);
        curl_close($ch);

variable $result return the following XML when i see the PAGE SOURCE
in browser

<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href='http://www.blogger.com/styles/atom.css'
type='text/css'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:georss='http://
www.georss.org/georss'>
  <id>tag:blogger.com,
1999:blog-8966040103340507032.post-6370446829717599557</id>
  <published>2009-06-20T04:32:00.003-07:00</published>
  <updated>2009-06-20T04:32:29.636-07:00</updated>
  <title type='text'>My Article</title>
  <content type='html'>Article Body&lt;div class='blogger-post-
footer'&gt;&lt;img width='1' height='1' src='https://
blogger.googleusercontent.com/tracker/
8966040103340507032-6370446829717599557?l=starwebtools.blogspot.com'/
&gt;&lt;/div&gt;</content>
  <link rel='replies' type='application/atom+xml' href='http://
starwebtools.blogspot.com/feeds/6370446829717599557/comments/default'
title='Post Comments'/>
  <link rel='replies' type='text/html' href='http://
starwebtools.blogspot.com/2009/06/my-article_20.html#comment-form'
title='0 Comments'/>
  <link rel='edit' type='application/atom+xml' href='http://
www.blogger.com/feeds/8966040103340507032/posts/default/6370446829717599557'/>
  <link rel='self' type='application/atom+xml' href='http://
www.blogger.com/feeds/8966040103340507032/posts/default/6370446829717599557'/>
  <link rel='alternate' type='text/html' href='http://
starwebtools.blogspot.com/2009/06/my-article_20.html' title='My
Article'/>
  <author>
    <name>starwebtools</name>
    <uri>http://www.blogger.com/profile/00091003337359045215</uri>
    <email>nore...@blogger.com</email>
    <gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005'
name='OpenSocialUserId' value='17949783210561206735'/>
  </author>
  <thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</
thr:total>
</entry>


i wnat to store this xml in php variable and want to extract this URL
http://starwebtools.blogspot.com/2009/06/my-article_20.html

thank u
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to