Es que google no tiene crossdomain. Hay veces que funciona, si tienes php, tener un fichero "xml_proxy.php" con este código
Código :
<?php
$post_data = $HTTP_RAW_POST_DATA;
$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);
$ch = curl_init( $_GET['url'] );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
if ( strlen($post_data)>0 ){
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
}
$response = curl_exec($ch);
if (curl_errno($ch)) {
print curl_error($ch);
} else {
curl_close($ch);
print $response;
}
?>
Así, en lugar de preguntar por la dirección
http://www.google.com/ig/api?weather=madrid,spain&hl=espreguntas por la dirección
xmlrpc_proxy.php?url=http://www.google.com/ig/api?weather=madrid,spain&hl=es
NO sé si hay algún modo más sencillo y NO sé si funciona