471,605 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Traversing XML or Hash table Which is fast

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

Dec 28 '05 #1
2 2098
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

Dec 28 '05 #2
thomson <sa**********@yahoo.com> wrote:
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.


What *exactly* do you mean by a hash file?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Dec 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by lothar | last post: by
3 posts views Thread by Tony | last post: by
reply views Thread by thomson | last post: by
6 posts views Thread by thecodemachine | last post: by
10 posts views Thread by Qiangning Hong | last post: by
139 posts views Thread by ravi | last post: by
1 post views Thread by jacob navia | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.