Skip to content

akoskm/nodeFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

jQuery plugin helping you to query XML elements having namespaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published