does your environment support xpath? (i.e, is there an evaluate method on xml ... if this is in firefox at least and xml is an xml document, it seems you could use xml.querySelector('someXmlTag[someAttr=someValue]');
I think so. I'm trying something like var matches = xml.querySelectorAll('Tracking[event=viewable_impression]') but still no results. This returns a nodelist object, and I need the value.
iterate through the nodelist ... if you only want the FIRST match (or there is only one) see the answer vvvv below - i.e. use querySelector not querySelectorAll
environmentsupport xpath? (i.e, is there anevaluatemethod onxml... if this is in firefox at least andxmlis an xml document, it seems you could usexml.querySelector('someXmlTag[someAttr=someValue]');querySelectornotquerySelectorAll