parsing of a xml response



HI i am completely new to xml and all. so if u could please help me. I have a url which gives me a xml response. I am facing problems in parsing the response and showing only the details that i want. Currently the url is "http://ift.tt/1B3F78P"


and i am using the following code->



$feed = file_get_contents($url);
$items = simplexml_load_string($feed);
print_r($items);


and this was the error file_get_contents( http://ift.tt/1vwhAge): failed to open stream: Invalid argument


i have also tried using simplexml_load_file and its showing the same error


Please help its very urgent. Its killing me


No comments:

Post a Comment