How to get attribute of node with namespace using SimpleXML?(如何使用 SimpleXML 获取具有命名空间的节点的属性?)
本文介绍了如何使用 SimpleXML 获取具有命名空间的节点的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
youtube.xml
update_videos.php
推荐答案
所以我找到了一种使用 xpath 的方法,这是最好的方法还是有一种方法与我在问题中的代码一致?只是出于好奇.
So I found a way to do it using xpath, is this the best way or is there a way that's consistent with my code in the question? Just out of curiosity.
这篇关于如何使用 SimpleXML 获取具有命名空间的节点的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!