Re: Question about XPath Matcher code MatchingContentHandler

2012-09-04 Thread Jukka Zitting
Hi, On Mon, Sep 3, 2012 at 7:50 PM, Ken Krugler kkrugler_li...@transpac.com wrote: No, the html _does_ match, which it needs to as it descends the DOM hierarchy. Note that we're dealing with SAX events instead of DOM hierarchies here. So what the startElement() methods does not (and is not

Re: Question about XPath Matcher code MatchingContentHandler

2012-09-03 Thread Jukka Zitting
Hi, On Thu, Aug 30, 2012 at 7:35 PM, Ken Krugler kkrugler_li...@transpac.com wrote: The issue is that BodyContentHandler uses MatchingContentHandler to find only text in nodes under the /html/body hierarchy. And this in turn winds up not matching the html element. That's as intented, as the

Re: Question about XPath Matcher code MatchingContentHandler

2012-09-03 Thread Ken Krugler
On Sep 3, 2012, at 8:02am, Jukka Zitting wrote: Hi, On Thu, Aug 30, 2012 at 7:35 PM, Ken Krugler kkrugler_li...@transpac.com wrote: The issue is that BodyContentHandler uses MatchingContentHandler to find only text in nodes under the /html/body hierarchy. And this in turn winds up not

Question about XPath Matcher code MatchingContentHandler

2012-08-30 Thread Ken Krugler
Hi Jukka, I was looking into a failure in a Bixo test, when using BodyContentHandler (wrapped by XHTMLContentHandler). The issue is that BodyContentHandler uses MatchingContentHandler to find only text in nodes under the /html/body hierarchy. And this in turn winds up not matching the html