Using multiple find in foreach with QueryPath?

I'm just learning QueryPath myself, but I think you should branch the row object. Otherwise the $tr->find('. Eventdate') will take you to the abbr element contained in the row, and each following find() will try to find elements beneath the abbr resulting in no matches.

Branch() (see documentation ) creates a copy of the QueryPath object, leaving the original object (in this case $tr ) intact.

QueryPath maintains its state internally (unlike jQuery) for performance reasons. So branch() is the way to go.

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