I am trying to find elements inside an XML response from an AJAX call, but I'm finding that the tag names are a bit odd. These tags are causing problems with my selectors.
The XML element I'm looking for in particular is <d:Department>
. Using jQuery in Chrome I can find this element with $(xml).find('Department')
. jQuery can't find the element in IE.
Using JavaScript I can get the element in Chrome using xml.getElementsByTagName('Department')
. In IE I have to use xml.getElementsByTagName('d:Department')
.
Is there a way to get this element in both browsers using JavaScript or jQuery without the need to look for both tag names?