Hi there,

I am a newbie users of tika. And I am working on a html parser project and i am
trying to use tika for that. I wrote a handler that called when html parsed. But
for  <div> tag startElement method does not be called. 
I searched that problem on discussion list and i found this solution

http://thread.gmane.org/gmane.comp.apache.tika.user/242

now for div tag startElement method is  being called. But this time attributes
of div tag does not appear. 

my mapper class is below

public class MyHtmlMapper extends DefaultHtmlMapper {

    public String mapSafeElement(String name) {
        if ("DIV".equals(name)) {
            return "div";
        }
        return super.mapSafeElement(name);
    }
}


currently startElement method called for div tag but attributes argument has
nothing.

Thanks and cheers

Reply via email to