troubleshooting Question

FIREFOX XML Traversing

Avatar of springy143
springy143 asked on
JavaScriptXMLWeb Browsers
2 Comments1 Solution387 ViewsLast Modified:
Does anyone know of the syntax to grab an xml element by its id in Firefox.

This is what I use in google and safari

xmlDoc.getElementById(pItemId).childNodes;

in IE including IE10 I use...

xmlDoc.selectSingleNode('//*[@id=' + pItemId + ']').childNodes;

Its all fine with all browser except for FIREFOX. Trying to get the same thing in Firefox I am finding a challenge because I have to keep recursively traversing through the complete xml structure. There must be another way.
ASKER CERTIFIED SOLUTION
Meir Rivkin
Full stack Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros