Sorry, but "the first array" means nothing. Is that the first array mention in the program reading from top to bottom? The first array that is used in the runtime order?
The work involved for anyone who doesn't have a set of sgml files with the particular set of <div> tags that your program is looking, to try and divine the format of those files and mock up data to allow them to try and run your program is considerable.
I think that you should consider putting as much effort into describing the problem as you did into your flowery request for help, you then might give us enough information uppon which to begin to advise you.
Try adding a few print tstatements to your program and work out what it is/is not doing. Come back with a clear descripton of the problem and you might get some more help.
Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.
|