step1:first declare a url: $url ="[url]"; step2: getting content for url: $results = file_get_contents($url); ( Note: file_get_contents: which reads entire file into string) step3: Load a xml content into a variable: $xml = simplexml_load_string($results); (NOTE: simplexml_load_string: Interprets a string of XML into an object) then u get content by echo $xml->[tag_name];