You might want to search the forum for "Flexible Product Listing", which does all the separating and identifying of elements. It is attached to post 50 of the original thread on the subject.