I can kind of see why you think they are similar, but a hash table and
an XML document are two very different things.
If you have a need to keep the data in an easily-persistable format, as
well as query it, then I would say use the XML file.
However, if the values that you want to look up, or their keys are more
complex, then I would use the hashtable.
Generally speaking, my guess is that the hashtable would be faster on
average than performing an XPath query on an XML document (for comparable
data).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"thomson" <sa**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi all,
can any one tell me which is fast traversing a XML file or a
hash file is fast, i got few few field names and values in XML which i
will use to retrieve. I can use Hash File also to do the same
operation, Can any one tell me which is faster.
Thanks in Advance
thomson