I\'m using XPath to locate a node (or something close to it) in a template that has non-well-formed HTML about 10 levels deep. (No I didn\'t write this HTML...but I\'ve bee
XPath does not work directly with HTML. The interaction of XPath with your HTML is dictacted by whatever software/library is parsing the HTML into a rendering tree. This may help direct your search appropriately.