i would like to know which is more faster while parsing XML File in JavaScript document.getElementById("MyID") ; Or Xpath="//MyID"; XMLDoc.evaluate(xpath, XMLDoc, null, XPathResult.ANY_TYPE,null)
PHP Geeks http://www.facebook.com/group.php?gid=6471105805
I'm guessing document.getElementById is going to be faster most of the time, because it's cheaper to pull and element out of a hash table by key than to traverse a DOM to find it by Xpath. In most cases, the difference won't be noticeable.
Add your logo to Pocket Folders.
Forum Rules
Bookmarks