[Solved] SimpleXML not working with Yahoo Answers [closed]
Firstly, you need to create instance of SimpleXML to use it. $bot = file_get_contents(“http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=API_KEY&query=”.$q1.””); $bot = simplexml_load_string($bot); echo $bot->Question[0]->ChosenAnswer; 1 solved SimpleXML not working with Yahoo Answers [closed]