Link to home
Start Free TrialLog in
Avatar of springy143
springy143

asked on

FIREFOX XML Traversing

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;

Open in new window


in IE including IE10 I use...

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

Open in new window


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
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of springy143
springy143

ASKER

Thank you for your help. That was fantastic. Really solved my problem.