I'm trying to search for a specific node in an xml document; unfortunately, i can't seem to find a reliable way to do this, correctly, in a crossbrowser fashion. Given this setup:
var test1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><test:things>\"things\"</test:things>"
var parser=new DOMParser();
var test2 =parser.parseFromString(test1,"text/xml");
in firefox this seems to work properly:
> $(test2).find("test\\:things")
[<test:things>…</test:things>]
in chrome this seems to work properly:
> $(test2).find("things")
[<test:things>…</test:things>]
haven't tried farther than that - is there a cross-browser safe method for performing this search? i'd rather not have to write two searches each time i need this functionality