Traversing XML or Hash table Which is fast

  • Thread starter Thread starter thomson
  • Start date Start date
T

thomson

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
 
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.
 
thomson said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top