Nokogiri: Navigating the DOM?

The approach I would take (if I am understanding your problem) is to use XPath or css to search for your start_here element and the parent element that you want to search under. Then, recursively walk the tree starting at parent, stopping when you hit the start_here element, and holding onto the last element that matches your style along the way.

Maybe this will do it. I'm not sure about the performance and if there might be some cases that I haven't thought of.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions