jQuery plugin helping you to query XML elements having namespaces
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
jquery.nodeFilter.js

README.md

nodeFilter is a tiny little jQuery plugin which helps you to write selectors for XML elements, even for those with namespaces.

Usage:

    <prefix:tag color="red" taste="tasty">Apple</prefix:tag>
    <prefix:tag color="green" taste="tasty">Kiwi</prefix:tag>
    var xmlDoc = $.parseXML(rawXml),
        $xml = $(xmlDoc),
        nodeFilterPTAttr = $xml.nodeFilter('prefix:tag[color="green"]').text(); // Kiwi

Tested on Firefox (23.0) and Chrome (29.0.1547.65)