I did search about SAX parser but not getting any good example for parsing xml with DYNAMICALLY generated tags.
It's not fundamentally different. If you look at the parser in
http://www.beingjavaguys.com/2013/06/read-xml-file-with-sax-parser.html, it watches for specific tags "firstName", "email" etc. So where it has code like
you need to handle the tags with fixed names, and in a loop the ones that have varying names, like this:
The very least the other developer needs to do is to move the "strCount" tag before all the "strN" tags, so that you know which value to use for the "max" variable I used. Or maybe there is an intrinsic limit, like you know that it can never be more than 20 or so - then you can just let the loop run from 0 to 20 every time.