0
<root xmlns='http://www.w3.org/2005/Atom' xmlns:element='http://search.yahoo.com/mrss/'>
<element:group>
<element:content url='https://myrequiredurl.com' otherattr='360' otherattr='640' otherattr='somthng' medium='smtng'/>
<element:content url='https://myrequiredurl.com' otherattr='720' otherattr='1280' otherattr='smtng' medium='smtng'/>
<element:content url='https://myrequiredurl.com' otherattr='1080' otherattr='1920' otherattr='smtng' medium='smtng'/>
</element:group>
</root>
以上是我的XML文档,我需要从第一'<element:content/>'
标签获得“网址”属性,我试图在w3schools.com提到的方式,但我不得不如何获取使用名称空间创建的xml标签的属性值?
没有运气有些帮助深表感谢我需要访问它使用JavaScript对不起的问题框架
谢谢你,我只是想提一下,还有一些其他的属性也有“otherattr”无论如何谢谢你的解决方案 – Devoper