It isn't going to be possible to do something which you can't describe. That's a basic rule of programming.
It's quite possible you will be able to do what needs to be done, but first you have to describe what needs to be done. I don't see any such description in your post. So, your first step is to describe the requirements. If the element names are unpredictable then that's the way it is, and you'll have to get a description of the requirements which doesn't use element names.
Joined: Feb 14, 2011
Thanks for taking the time to reply. I think I get your meaning here.