Quote:
quote:Originally posted by pgtips
I don't know of any way to index a document - XPath is probably your best bet:
Set xNodeList = xDomDocument.selectNodes("/root/a[@ExAtt='1']")
|
I tried to use it once - but iit is very very slow.
Finding un-indexed node is very slow, aspecially on a big tree.
One solution by Oleg Tkachenko is :
DOM doesn't provide any functionality to optimize such kind of operations. As
it's not unique it cannot be ID. The only way is to walk through the whole
tree and create a hashtable of such nodes - next time you can use the
hashtable to get nodes directly by key.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel