How to use jQuery for XML parsing with namespaces

后端 未结 20 1663
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 10:17

I\'m new to jQuery and would like to parse an XML document.

I\'m able to parse regular XML with the default namespaces but with XML such as:



        
20条回答
  •  旧时难觅i
    2020-11-22 10:39

    The "\\" escaping isn't foolproof and the simple

    .find('[nodeName="z:row"]')
    

    Method seems to have been broken as of Jquery 1.7. I was able to find a solution for 1.7 , using a filter function, here: Improving Javascript XML Node Finding Performance

提交回复
热议问题