如何检索特定的XML标记名称?

时间:2017-05-07 10:07:19

标签: php xml

上面的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>

1 个答案:

答案 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;