Javascript jQuery XML读取/如何使$.fn.find()不区分大小写

Javascript jQuery XML读取/如何使$.fn.find()不区分大小写,javascript,jquery,xml,find,case-insensitive,Javascript,Jquery,Xml,Find,Case Insensitive,我正在尝试使用jquery读取xml。我使用jquery将xml vai ajax请求作为xml响应获取 function onSuccess(xml) { this._xmlJqueryElem = $(xml); /* this => main scope (I use $.proxy() here) */ } 然后我使用jQuery的find函数来搜索节点并得到如下值 var documentName = this._xmlJqueryElem.find('Document

我正在尝试使用jquery读取xml。我使用jquery将xml vai ajax请求作为xml响应获取

function onSuccess(xml)
{
    this._xmlJqueryElem = $(xml); /* this => main scope (I use $.proxy() here) */
}
然后我使用jQuery的find函数来搜索节点并得到如下值

var documentName = this._xmlJqueryElem.find('DocumentName').text();
当xml响应不是小写的,但有时来自服务器的xml响应是小写的,然后它找不到任何具有键DocumentName的元素时,这种方法就可以工作了;因为它现在是documentname


有没有办法使find函数不区分大小写?

能否提供一个示例xml或在这两种情况下从服务器返回的as。