How do I find the hierarchical structure of the search reply?

On Apr 16, 8:55 pm, Mark McBride <mmcbr...@twitter.com> wrote:
> Atom is an XML dialect, so the approach you're using should work fine
>   ---Mark
>
> http://twitter.com/mccv
>
> On Fri, Apr 16, 2010 at 5:08 AM, Dushyant <dushyantaror...@gmail.com> wrote:
> > I am using the following method
> >http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search
> > Now the output formats are json and atom. I want to parse the search
> > results using PHP.
> > Till now I have been following the following approach to parse xml
> > outputs.
>
> > $url = 'http://api.twitter.com/1/friendships/show.xml?
> > source_id=xxxxx&target_id=yyyyy';
> > $ch = $this->initialize_curl($url,'none',false);  // own function
> > $response = curl_exec($ch);
>
> > curl_close($ch);
>
> > $xml = simplexml_load_string($response);
>
> > Can I still use the same approach. Kindly guide me in the right
> > direction.
>
> > --
> > Subscription settings:
> >http://groups.google.com/group/twitter-development-talk/subscribe?hl=en

Reply via email to