@Pravallika thank you for your input and help.
@Ismail, is this what you want to achieve?
After you collect all ListItems in a collection you can foreach them and find exactly what you need in them.
If this is not your case please elaborate a bit more on your scenario so we can help you best.
Hope to hear from you soon.