0
我的基本的XML结构:如何在php simplexml中通过名称来获取节点属性值?
<?xml version="1.0" encoding="utf-8"?>
<users>
<user userId="1" userName="nameHere" userAge="34"></user>
</users>
然后:
我怎样才能得到它的名字的特殊属性的值?就像:
variable value = user.attr('userAge')
非常感谢!