Hello
After having parsed the xml, I want to find a particular element. I have two approaches
1) The Most obvious is to call getElementsByTagName.
2) USe getChildNodes and iterate over the list, and compare the node names.
My question is does getElementByTagName internally do the same thing , as iterating the entire DOM tree and comparing node names ?
Or does it use any sort of indexing ? In other words would getElementsByTagName be a better choice ?
Any help is appreciated.
thanks
-Aniruddha
