上面的Feed返回一个XML文档。我可以使用这些代码成功检索标题名称,如标题,描述和链接
tf.reduce_sum(tf.squared_difference(Y1, Y2))
我如何获得 $xml = file_get_contents($feed_url);
$xml = trim($xml);
$xmlObject = new SimpleXmlElement($xml);
foreach ($xmlObject->channel->item as $item) {
$title = strip_tags($item->title);
$description = strip_tags($item->description);
}
?
<a10:updated>
答案 0 :(得分:0)
您正在查看其他XML命名空间。您可以使用大括号来访问它:
SELECT fp.entity_id AS id, target_id AS arrival, MIN(value) AS price
FROM flights_arrival AS fa
INNER JOIN flights_price AS fp ON (fp.entity_id = fa.entity_id)
GROUP BY target_id;