Hey,
I am trying to parse xml file using Sax parser. The file has variable number of same elements. I want to count the number of times the element is present. And i want this count before parsing, so that I can declare an array of appropriate size.
One way is to count them in a separately class with another parser (clumsy) and other way is dynamic array (List Array). Is there any other better way to do this?
Also, Is it possible to make an ArrayList of my class..? because I want an array of type myClass.