... because the html parser (NekoHtml) is tidying up the the DOM. Dierk > He realizes that the HTML is malformed. His question is really why > does Xpath seem to work (reports success) when the html is malformed.