note: As a whole, same message on Tiger & Leopard.
Are you sure? The warnings from tidy imply that it's ignoring some
HTML elements that it can't figure out. That's probably why the XPath
expression doesn't find them. I would guess that on Tiger it was
somehow able to parse those elements. Please try running it on Tiger
and comparing the exact error messages.
Is fixing the syntax of the input file a possibility? Or does this
code need to be able to parse any HTML in existence?