in reply to parsing an array
Dear OP, I have a problem reading your code.
I would like to help, but without some code to read it's rather hard to see where you are having trouble. Thanks in expectation.