by NicC » Wed Jul 27, 2011 3:55 pm
Looks like you have two distinct pieces of work - parse the xml file then process the output of that parsing. So, split the processing into 2 programs - the first doing your parse and saving a count of the elements to a file, the second reads the count, allocates the array with the count as the number of elements, read the parsed input into the array and process.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic