有没有办法通过属性getElement xml? [英] Is there a way to getElement xml by attribute?

查看:124
本文介绍了有没有办法通过属性getElement xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按其属性获取xml节点。

I'm trying to grab an xml node by its attribute.

编辑

我正在尝试使用javascript xml而不是jquery通过其属性值检索元素。有一个简单的方法吗?

I'm trying to retrieve an element by its attribute value using javascript xml instead of jquery. Is there a simple method for this?

推荐答案

您必须先找到元素列表,然后按其属性进行过滤。

You have to find a list of elements first, then filter by their attributes.

在这里查看我的演示: http:// jsfiddle .net / silkster / eDP5V /

Check out my demo here: http://jsfiddle.net/silkster/eDP5V/

这篇关于有没有办法通过属性getElement xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆