How to use jQuery for XML parsing with namespaces

后端 未结 20 1662
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 10:23

    It's worth noting that as of jQuery 1.7 there were issues with some of the work-arounds for finding namespaced elements. See these links for more information:

    • jQuery Bug Ticket noting the lack of cross-browser support for the ability to do .find('[nodeName="z:row"]')
    • A suggested plug-in workaround with some performance tests.

提交回复
热议问题