Finally got workaround for lack of divs working. Someone decided to not put threads in their own divs and instead make them all siblings and put a <hr> at the thread boundaries. New code solves this my creating a new xml tree and inserting the <hr> delimited content inside divs so then everything can be parsed with existing code.