[Htmlparser-user] HTMLParser with dom4j for Xpath
Brought to you by:
derrickoswald
From: Misha K. <mis...@gm...> - 2010-05-13 14:59:56
|
Dear All: I have successfully gotten the SAX parser of HTML Parser to work with dom4j so that I can use Xpath expressions with HTMLParser. I like HTMLParser as it is quite faster than other frameworks. However, I have two issues: 1) Is it possible, in any way, to change the SAX parser to report _lowercase_ tag names? 2) For some reason, although I get a valid tree in dom4j, I cannot seem to find elements that I can see exist by browsing the tree using XPath? (for example a TD element with a certain classpath, no matter whether or not I capitalize TD). Anyone used HTMLParser with dom4j successfully? Thank you Misha |