My program uses a lot of static information to do calculations. To make this information more readable to humans I'm migrating from CSV to XML. The CSV files are all separate files for one kind of information.
I've already converted one CSV file to XML and written a
test class to retrieve the necessary information. My test class uses DOM and XPath to look up the correct value it needs to do the calculation. I used DOM because I need very frequent access to these values and thought in memory access would speed things up. Is DOM the right way to go or should I use SAX?
Now I also want to convert my other CSV files and put them in the same XML. This would make it more manageable because I would have one file instead of 15. I reckon the total size of this one XML file will be around 2.5 MB (it's all static information so this size won't change). Can I still use DOM in this case? Will XPath be a lot slower when I'm looking through a big DOM tree? Is it better to create 15 seperate XML files and load them as 15 different DOM trees? Will SAX be faster?