Originally posted by William Brogden:
In Java 1.5 the java.util.Properties class got a loadFromXML and a storeToXML method. Properties is an extension of Hashtable and implements Map.
Perhaps that will handle your problem without going to another library.
Bill
i did try this already but i had a few problems, first properties only stores
String, String. my map is String, integer. id rather not have to go through converting the integers to srtings and vice versa
the second problem i had (im guessing) is with the way i implemented the code, my xml always turned out like this
Satou: i had a look at your example too, but in my code i define the hashmap:
i take it this wont make any difference to the example you posted?