Matt

Matt

  • NA
  • 1
  • 0

Dynamic Creation of Hashtables

Jun 15 2009 10:34 AM
I am writing a project that reads in data from and XML file and parses it into hashtables. I have a large collection of different files that could be sent into this parser based on user input. Each XML file has similar tags but can have more or less of certain items within the file. I have been creating hashtables for several tags within the XML and then putting the hashtables into a larger hastable for the entire project. The problem is that depending on which file the user chooses I may need anywhere from 10 hashtables to over 100. Basically, I need to check at runtime which file the user selected and create the correct number of hashtables. Is there anyway to do this while using a general parsing class or would i have to write a new parser for each XML file.